[LLDB][GUI] Check fields validity in actions
authorOmar Emara <mail@OmarEmara.dev>
Sat, 24 Jul 2021 01:02:24 +0000 (18:02 -0700)
committerGreg Clayton <gclayton@fb.com>
Sat, 24 Jul 2021 01:02:48 +0000 (18:02 -0700)
commit80ac12b70b16a51fac9918c4b25e3bdfad05eee5
treeaafef829a3f31d62866e8a8349c9e714f17b801b
parente160b3987e734ba834cbd985315765ea7f468680
[LLDB][GUI] Check fields validity in actions

This patch adds a virtual method HasError to fields, it can be
overridden by fields that have errors. Additionally, a form method
CheckFieldsValidity was added to be called by actions that expects all
the field to be valid.

Differential Revision: https://reviews.llvm.org/D106459
lldb/source/Core/IOHandlerCursesGUI.cpp