<div dir="ltr">Hi, this is my first patch, hopefully I've done it the right way :-)<br><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I'm automatically attaching to child processes by a custom breakpoint action written in Python:</div>
<div><br></div><div><div>def breakpoint_callback(frame, bp_loc, dict):</div><div> old_target = lldb.target</div><div> # If we just use lldb.process here, it won't continue afterwards :-(</div><div> thread = frame.GetThread()</div>
<div> old_process = thread.GetProcess()</div><div><br></div><div> handle = int(frame.FindVariable("handle").GetValue())</div><div> # After we attach to PID it will automatically switch to correct executable</div>
<div> exe = old_target.GetExecutable().fullpath</div><div> new_target = lldb.debugger.CreateTarget(exe) # <-- crash here</div></div><div><br></div><div>I'm not using any remote sessions, everything is local. And my fix makes it work correctly.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div>-Michail</font></span></div></div></div>