[Lldb-commits] [PATCH] D116788: [lldb] Set result error state in 'frame variable'

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 10 17:41:29 PST 2022


I agree that if we are going to start putting in errors for not finding listed arguments to “frame var” we should do it consistently, and Greg’s list seems good - along with the error “No debug info” when “frame var” is run in a frame w/o debug info or recognizers.

The one thing that bothers me slightly about this is that if I run “frame var” from HandleCommand in a script, with this change I can’t rely on the command status to tell whether the command output had anything interesting in it.  That seems awkward.

NB: speaking just for myself, I’m actually a little in favor of that potential breakage, since “the problem just shows that you shouldn’t be using HandleCommand in scripts”.  But my non-mean self did feel like it ought to raise the issue…

Jim




> On Jan 10, 2022, at 5:27 PM, Dave Lee via Phabricator <reviews at reviews.llvm.org> wrote:
> 
> kastiglione added a comment.
> 
>> Let me know your thoughts as mine are just my initial thoughts after thinking about things a bit more.
> 
> For most of what you said, I was thinking the same. The only place where I wasn't as sure about (regex), I was on the fence. Your cases and arguments all seem good to me. I think the consistency is also good.
> 
> thanks
> 
> 
> Repository:
>  rG LLVM Github Monorepo
> 
> CHANGES SINCE LAST ACTION
>  https://reviews.llvm.org/D116788/new/
> 
> https://reviews.llvm.org/D116788
> 



More information about the lldb-commits mailing list