llvm-project/lldb/source/Interpreter
Jim Ingham c1b07d6177 Have CommandObjectParsed check for "commands that take no arguments".
This is currently being done in an ad hoc way, and so for some
commands it isn't being checked.  We have the info to make this check,
since commands are supposed to add their arguments to the m_arguments
field of the CommandObject.  This change uses that info to check whether
the command received arguments in error.

A handful of commands weren't defining their argument types, I also had
to fix them.  And a bunch of commands were checking for arguments by
hand, so I removed those checks in favor of the CommandObject one.  That
also meant I had to change some tests that were checking for the ad hoc
error outputs.

Differential Revision: https://reviews.llvm.org/D128453
2022-06-27 15:14:41 -07:00
..
CMakeLists.txt [lldb] Change implementation of memory read --show-tags option 2022-05-18 16:49:09 +01:00
CommandAlias.cpp [lldb] Remove redundant calls to set eReturnStatusFailed 2021-06-17 12:21:54 +01:00
CommandHistory.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
CommandInterpreter.cpp Don't use Optional::hasValue (NFC) 2022-06-20 20:17:57 -07:00
CommandObject.cpp Have CommandObjectParsed check for "commands that take no arguments". 2022-06-27 15:14:41 -07:00
CommandOptionValidators.cpp
CommandReturnObject.cpp [lldb] Show the DBGError if dsymForUUID can't find a dSYM 2022-04-14 16:54:00 -07:00
InterpreterProperties.td Add a setting to not require --overwrite to overwrite commands. 2022-03-31 14:15:14 -07:00
OptionArgParser.cpp [lldb] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
OptionGroupArchitecture.cpp
OptionGroupBoolean.cpp
OptionGroupFile.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
OptionGroupFormat.cpp [Bug 49018][lldb] Fix incorrect help text for 'memory write' command 2021-11-26 19:14:26 +05:30
OptionGroupMemoryTag.cpp [lldb] Add --show-tags option to "memory find" 2022-05-19 14:40:01 +01:00
OptionGroupOutputFile.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
OptionGroupPlatform.cpp [lldb] Remove the global platform list 2022-04-13 14:41:13 +02:00
OptionGroupPythonClassWithDict.cpp [lldb/Interpreter] Make OptionGroupPythonClassWithDict options non-required 2021-03-04 20:24:26 +01:00
OptionGroupString.cpp
OptionGroupUInt64.cpp
OptionGroupUUID.cpp
OptionGroupValueObjectDisplay.cpp [lldb] Add setting for max depth of value object printing (NFC) 2022-05-03 10:39:42 -07:00
OptionGroupVariable.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
OptionGroupWatchpoint.cpp
OptionValue.cpp [lldb][NFC] Remove all uses of StringRef::withNullAsEmpty in LLDB 2021-05-18 09:41:20 +02:00
OptionValueArch.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueArgs.cpp [lldb][NFC] Make OptionValueArgs::GetArgs constant 2021-02-28 19:23:20 +03:00
OptionValueArray.cpp [lldb] Convert misc. StringConvert uses 2021-09-25 14:19:19 +02:00
OptionValueBoolean.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueChar.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueDictionary.cpp [lldb] Add setting to override PE/COFF ABI by module name 2022-06-22 17:16:06 +03:00
OptionValueEnumeration.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueFileColonLine.cpp [LLDB] Applying clang-tidy modernize-use-default-member-init over LLDB 2022-03-14 13:32:03 -07:00
OptionValueFileSpec.cpp [LLDB] Applying clang-tidy modernize-use-default-member-init over LLDB 2022-03-14 13:32:03 -07:00
OptionValueFileSpecList.cpp [lldb] Convert misc. StringConvert uses 2021-09-25 14:19:19 +02:00
OptionValueFormat.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueFormatEntity.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueLanguage.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValuePathMappings.cpp [lldb][NFC] avoid unnecessary roundtrips between different string types 2021-11-01 22:15:01 -07:00
OptionValueProperties.cpp [lldb] Add setting for max depth of value object printing (NFC) 2022-05-03 10:39:42 -07:00
OptionValueRegex.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueSInt64.cpp [lldb] Convert misc. StringConvert uses 2021-09-25 14:19:19 +02:00
OptionValueString.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueUInt64.cpp [lldb] Convert misc. StringConvert uses 2021-09-25 14:19:19 +02:00
OptionValueUUID.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
Options.cpp [lldb] Replace Host::SystemLog with Debugger::Report{Error,Warning} 2022-06-24 09:46:26 -07:00
Property.cpp [lldb] Add setting to override PE/COFF ABI by module name 2022-06-22 17:16:06 +03:00
ScriptInterpreter.cpp Fix a copy-paste error in "br com add -s py -o 'some_python' BKPT_NAME" 2022-05-31 17:24:14 -07:00
embedded_interpreter.py Fix `script -lpython` to handle control flow in one-line commands. 2022-06-15 22:20:48 -07:00