<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br><div apple-content-edited="true">
<div>Sincerely,</div><div>-<span class="Apple-converted-space"> </span><i>Enrico Granata</i></div>
</div>
<br><div><div>On Nov 4, 2011, at 7:58 AM, michael wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I have a script, something like:<br><br>#########################<br>import lldb<br>import sys<br>import os<br>import time<br><br>def StepOver(debugger, args, result, dict):<br> arg_split = args.split(" ")<br> print type(arg_split)<br> count = int(arg_split[0])<br> for i in range(0,count):<br> lldb.thread.StepOver(lldb.eOnlyThisThread)<br> print "step<%d>"%i<br> time.sleep(.75)<br>##########################<br><br>I also have an command shortcut assigned to call it.<br><br>I have 2 issues:<br>1. I have to sleep in the loop (for some period over some threshold),<br> or the script seems to lock up.<br> Is this due to some race condition ?<br>2. how can I force a console flush inside the loop, currently the console<br> is deferred until the script returns. Is there some sort of yield<br> or console flush command?<br><br>Thanks,<br><br>mtm<br><br>_______________________________________________<br>lldb-dev mailing list<br><a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev<br></div></blockquote></div><br></div></body></html>