[Lldb-commits] [PATCH] D47992: [lldb-mi] Correct error processing in exec-next command.
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 18 09:19:24 PDT 2018
clayborg added a comment.
In https://reviews.llvm.org/D47992#1134120, @apolyakov wrote:
> If you look at `bool CMICmdCmdExecContinue::Execute()`, you'll see that there are cases in which we need a flexible way to finish MI command(specific action in error case for example). We have a few options: not to add such an utility function, add and use it in simple situations where we just want to check on SBError status or we may create utility function with lambda functions in which user could specify actions he needs. What are your thoughts about this?
I am just trying to reduce duplicated code with my suggestion. Feel free to code normally when you are doing tricky things for returning in the middle of a function with special error cases.
https://reviews.llvm.org/D47992
More information about the lldb-commits
mailing list