<div dir="ltr">I'd like to have a command (Python script?) that allows me to trace function calls and exits.<div><br></div><div>One possible implementation seems that I could:</div><div><br></div><div><ul><li>Set up a breakpoint on function entry.<br></li><li>Run some code to log the arguments passed to the function.<br></li><li>Use SBThread::StepOut() to get to where the function has been exited.</li></ul><div><br></div><div>This leaves me with a number of questions though:</div></div><div><br></div><div><ul><li>Is this a good or even valid approach?<br></li><li>Is all of this safe against re-entry? What happens if I'm trying X and X gets invoked again (during the thread plan execution)?<br></li><li>How do I get the return value for the function that I've just exited via StepOut?<br></li><li>What happens if X has been inlined? Will this work still for all entries and exits?</li><li>I also saw SBThreadPlan was added since I last looked into this. Does anything use this? (I didn't see any uses in-tree.)</li></ul><div><br></div><div>Thanks!</div><div><br></div><div> - Bruce</div></div><div><br></div></div>