llvm-project/lldb/source/Commands
Venkata Ramanaiah Nalamothu 7f05ff8be4 [Bug 49018][lldb] Fix incorrect help text for 'memory write' command
Certain commands like 'memory write', 'register read' etc all use
the OptionGroupFormat options but the help usage text for those
options is not customized to those commands.

One such example is:

  (lldb) help memory read
           -s <byte-size> ( --size <byte-size> )
               The size in bytes to use when displaying with the selected format.
  (lldb) help memory write
	   -s <byte-size> ( --size <byte-size> )
               The size in bytes to use when displaying with the selected format.

This patch allows such commands to overwrite the help text for the options
in the OptionGroupFormat group as needed and fixes help text of memory write.

llvm.org/pr49018.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D114448
2021-11-26 19:14:26 +05:30
..
CMakeLists.txt [lldb][AArch64] Add "memory tag read" command 2021-06-24 17:35:45 +01:00
CommandCompletions.cpp Add a "command container" hierarchy to allow users to add container nodes. 2021-10-18 15:29:24 -07:00
CommandObjectApropos.cpp Add a "command container" hierarchy to allow users to add container nodes. 2021-10-18 15:29:24 -07:00
CommandObjectApropos.h
CommandObjectBreakpoint.cpp Add a "current" token to the ThreadID option to break set/modify. 2021-08-06 15:29:55 -07:00
CommandObjectBreakpoint.h
CommandObjectBreakpointCommand.cpp [lldb] Remove redundant calls to set eReturnStatusFailed 2021-06-17 14:39:35 +01:00
CommandObjectBreakpointCommand.h
CommandObjectCommands.cpp Add a "command container" hierarchy to allow users to add container nodes. 2021-10-18 15:29:24 -07:00
CommandObjectCommands.h
CommandObjectDisassemble.cpp [lldb] Use a struct to pass function search options to Module::FindFunction 2021-08-05 10:18:14 -07:00
CommandObjectDisassemble.h [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
CommandObjectExpression.cpp Modify "statistics dump" to dump JSON. 2021-10-21 12:14:21 -07:00
CommandObjectExpression.h [lldb] Mark expressions that couldn't be parsed or executed as failed expressions 2020-03-23 15:28:17 +01:00
CommandObjectFrame.cpp Modify "statistics dump" to dump JSON. 2021-10-21 12:14:21 -07:00
CommandObjectFrame.h
CommandObjectGUI.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
CommandObjectGUI.h
CommandObjectHelp.cpp Add a "command container" hierarchy to allow users to add container nodes. 2021-10-18 15:29:24 -07:00
CommandObjectHelp.h [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
CommandObjectLanguage.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
CommandObjectLanguage.h
CommandObjectLog.cpp [lldb] Remove redundant calls to set eReturnStatusFailed 2021-06-17 14:39:35 +01:00
CommandObjectLog.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
CommandObjectMemory.cpp [Bug 49018][lldb] Fix incorrect help text for 'memory write' command 2021-11-26 19:14:26 +05:30
CommandObjectMemory.h
CommandObjectMemoryTag.cpp [lldb][AArch64] Mark mismatched tags in tag read output 2021-07-30 11:47:58 +01:00
CommandObjectMemoryTag.h [lldb][AArch64] Add "memory tag read" command 2021-06-24 17:35:45 +01:00
CommandObjectMultiword.cpp Add a "command container" hierarchy to allow users to add container nodes. 2021-10-18 15:29:24 -07:00
CommandObjectPlatform.cpp [lldb] Remove ConstString from Platform plugin names 2021-10-26 10:04:35 +02:00
CommandObjectPlatform.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
CommandObjectPlugin.cpp [lldb] Remove redundant calls to set eReturnStatusFailed 2021-06-17 14:39:35 +01:00
CommandObjectPlugin.h
CommandObjectProcess.cpp Revert "Revert "Make it possible for lldb to launch a remote binary with no local file."" 2021-11-17 17:59:47 -08:00
CommandObjectProcess.h
CommandObjectQuit.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
CommandObjectQuit.h
CommandObjectRegexCommand.cpp Fix a thinko in the parsing of substitutions in CommandObjectRegexCommand. 2021-07-27 18:58:56 -07:00
CommandObjectRegexCommand.h [lldb] Move ScriptCommand and RegexCommand under Commands (NFC) 2020-09-01 17:33:39 -07:00
CommandObjectRegister.cpp [lldb] Remove redundant calls to set eReturnStatusFailed 2021-06-17 14:39:35 +01:00
CommandObjectRegister.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
CommandObjectReproducer.cpp [lldb] Remove CommandReturnObject's SetError(StringRef) 2021-06-23 11:25:10 +00:00
CommandObjectReproducer.h
CommandObjectScript.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
CommandObjectScript.h [lldb] Add -l/--language option to script command 2020-09-15 09:40:17 -07:00
CommandObjectSession.cpp [lldb/interpreter] Move the history subcommand to session (NFCI) 2020-07-23 13:05:45 +02:00
CommandObjectSession.h [lldb/interpreter] Add ability to save lldb session to a file 2020-07-22 11:43:16 +02:00
CommandObjectSettings.cpp [lldb] [gdb-remote] Add eOpenOptionReadWrite for future gdb compat 2021-08-09 12:06:59 +02:00
CommandObjectSettings.h
CommandObjectSource.cpp [lldb] Use a struct to pass function search options to Module::FindFunction 2021-08-05 10:18:14 -07:00
CommandObjectSource.h
CommandObjectStats.cpp Add modules stats into the "statistics dump" command. 2021-10-25 11:50:02 -07:00
CommandObjectStats.h
CommandObjectTarget.cpp [lldb][NFC] avoid unnecessary roundtrips between different string types 2021-11-01 22:15:01 -07:00
CommandObjectTarget.h
CommandObjectThread.cpp [lldb][NFC] Inclusive Language: rename master plan to controlling plan 2021-11-11 15:04:44 -06:00
CommandObjectThread.h
CommandObjectThreadUtil.cpp [lldb] Remove redundant calls to set eReturnStatusFailed 2021-06-17 14:39:35 +01:00
CommandObjectThreadUtil.h [trace][intel-pt] Create basic SB API 2021-06-17 15:14:47 -07:00
CommandObjectTrace.cpp [lldb] Return StringRef from PluginInterface::GetPluginName 2021-10-18 10:14:42 +02:00
CommandObjectTrace.h [trace][intel-pt] Implement trace start and trace stop 2021-03-30 17:31:37 -07:00
CommandObjectType.cpp Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
CommandObjectType.h
CommandObjectVersion.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
CommandObjectVersion.h
CommandObjectWatchpoint.cpp Use StringRef::contains (NFC) 2021-10-23 20:41:46 -07:00
CommandObjectWatchpoint.h
CommandObjectWatchpointCommand.cpp [lldb] Remove redundant calls to set eReturnStatusFailed 2021-06-17 14:39:35 +01:00
CommandObjectWatchpointCommand.h
CommandOptionsProcessLaunch.cpp [lldb/Commands] Add command options for ScriptedProcess to ProcessLaunch 2021-03-23 18:24:47 +01:00
CommandOptionsProcessLaunch.h [lldb/Commands] Add command options for ScriptedProcess to ProcessLaunch 2021-03-23 18:24:47 +01:00
Options.td Modify "statistics dump" to dump JSON. 2021-10-21 12:14:21 -07:00
OptionsBase.td