[all-commits] [llvm/llvm-project] 7f05ff: [Bug 49018][lldb] Fix incorrect help text for 'mem...

ramana-nvr via All-commits all-commits at lists.llvm.org
Fri Nov 26 05:44:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f05ff8be481f6db23615c028280fd92c2080f5f
      https://github.com/llvm/llvm-project/commit/7f05ff8be481f6db23615c028280fd92c2080f5f
  Author: Venkata Ramanaiah Nalamothu <ramana.venkat83 at gmail.com>
  Date:   2021-11-26 (Fri, 26 Nov 2021)

  Changed paths:
    M lldb/include/lldb/Interpreter/OptionGroupFormat.h
    M lldb/source/Commands/CommandObjectMemory.cpp
    M lldb/source/Interpreter/OptionGroupFormat.cpp
    M lldb/test/API/commands/help/TestHelp.py

  Log Message:
  -----------
  [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




More information about the All-commits mailing list