llvm-project/lldb/source
Med Ismail Bennani c16fef19f6 [lldb/Interpreter] Make OptionGroupPythonClassWithDict options non-required
When using `OptionGroupPythonClassWithDict` options in an `OptionGroup`
with other `Options`, it can happen that the combinaison of some options
of each group makes the command invalid.

To solve that issue, this patch adds a bitmask argument to the
`OptionGroupPythonClassWithDict` constuctor that is used to mark each
option as required (or not).

If the `required_options` bitmask isn't passed to the constructor, the
class will keep its default behaviour, making the `--script-class` and
`--python-function` required.

rdar://65508855

Differential Revision: https://reviews.llvm.org/D97910

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2021-03-04 20:24:26 +01:00
..
API [lldb][NFC] Delete unused AddressResolverName 2021-03-03 13:30:02 +01:00
Breakpoint Reland "[lldb] Make CommandInterpreter's execution context the same as debugger's one" 2021-02-08 15:09:09 +03:00
Commands [lldb] Revert ScriptedProcess patches 2021-03-01 23:23:27 +00:00
Core [lldb][NFC] Delete unused AddressResolverName 2021-03-03 13:30:02 +01:00
DataFormatters [lldb][NFC] Give CompilerType's IsArrayType/IsVectorType/IsBlockPointerType out-parameters default values 2021-02-23 11:15:31 +01:00
Expression Promote scalars to load addresses when dereferencing them. 2021-03-02 14:30:39 -08:00
Host Migrate to llvm::unique_function instead of static member functions for callbacks 2021-03-02 16:13:54 -08:00
Initialization [lldb] Fix shared library directory computation on windows 2021-02-18 15:37:52 +01:00
Interpreter [lldb/Interpreter] Make OptionGroupPythonClassWithDict options non-required 2021-03-04 20:24:26 +01:00
Plugins [lldb] Apply gdb-remote timeout to platform connections as well 2021-03-04 14:46:02 +01:00
Symbol [lldb][NFC] Give CompilerType's IsArrayType/IsVectorType/IsBlockPointerType out-parameters default values 2021-02-23 11:15:31 +01:00
Target LanguageRuntime for 0th frame unwind, simplify getting pc-for-symbolication 2021-03-03 19:29:40 -08:00
Utility [lldb] Check that files exists before handing them off to FileCollector 2021-02-18 16:16:15 -08:00
CMakeLists.txt Remove HAVE_VCS_VERSION_INC, not needed 2020-10-29 13:09:05 -07:00
lldb.cpp [lldb] Reinstate support for LLDB_VERSION_STRING 2021-02-22 16:56:00 -08:00