<div dir="ltr">Thank you Jim! I'm at cppcon and I won't be able to work on it until Monday, but I can help with a code review if you're planning to take a stab at it.<div><br></div><div>I was hoping we can avoid dealing with reentrancy but I was wrong. For handling reentrancy I was briefly considering either maintaining a full blown command stack or perhaps just a nesting counter.</div><div><br></div><div>Also, with reentrancy, I think that interruption should affect the "outmost" command scope rather than just interrupting the current command, what do you think?</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 27, 2017 at 6:46 PM, Jim Ingham via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This actually asserts on any use "command source" is the one command that re-enters the command interpreter.  It should be as simple as getting command source to rest the state flag before it goes to do the sourcing.  I'll check that out tomorrow if nobody gets to it first.<br>
<br>
command source is one of a set of early commands that we got into lldb before we had hired the person who wrote the testsuite way way back in the day, and though we went and backfilled the tests at that point, apparently we missed command source.  So we'll also have to add a test for that.<br>
<br>
I also filed:<br>
<br>
<a href="https://bugs.llvm.org/show_bug.cgi?id=34758" rel="noreferrer" target="_blank">https://bugs.llvm.org/show_<wbr>bug.cgi?id=34758</a><br>
<br>
to cover the issue.<br>
<br>
Jim<br>
<br>
______________________________<wbr>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/lldb-dev</a><br>
</blockquote></div><br></div>