[Lldb-commits] [PATCH] D37923: Implement interactive command interruption

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 19 11:30:54 PDT 2017


On Tue, Sep 19, 2017 at 11:27 AM Jim Ingham <jingham at apple.com> wrote:

> We agreed to forwards compatibility because people write big scripts that
> use the SB API, implement GUI's on top of them (more than just Xcode) etc.
> So we try not to jerk those folks around.  That adds a little more
> responsibility on our part to think carefully about what we add, but the
> notion that we should refrain from making useful functionality available
> because we'd rather not be beholden to our decisions seems really
> wrong-headed to me.
>
> And in this case there's a clear use for this. For instance the xnu macros
> have a bunch of Python based commands that spew out pages and pages of
> output.  Those guys would love to make their commands interruptible.  To do
> that they would need to call WasInterrupted.  So this is 100% something
> that should be available at the SB API layer.
>
>
Couldn't it just return eCommandFinishedNoResult?  Or a new value,
eCommandFinishedPartialResult?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170919/56bdf11b/attachment.html>


More information about the lldb-commits mailing list