diff options
author | Jim Ingham <jingham@apple.com> | 2019-05-02 02:14:08 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2019-05-02 02:14:08 +0000 |
commit | e91ad7d290ed655aeb53883f64181cdefc7fa757 (patch) | |
tree | 64cfa22a243898ea2d7307a0ab231a7233d21df9 | |
parent | 84bed67a5cd344d16d9023f164fb240ba96d13a2 (diff) | |
download | bcm5719-llvm-e91ad7d290ed655aeb53883f64181cdefc7fa757.tar.gz bcm5719-llvm-e91ad7d290ed655aeb53883f64181cdefc7fa757.zip |
Mention the thread-format & frame-format settings in help.
You can only find out about this useful customization by browsing
the settings list output or the llvm.org web pages. Mention it
in the help for thread list, thread backtrace & _regex_bt commands
to make it more discoverable.
llvm-svn: 359752
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 9 | ||||
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 00f52d5b881..519a2865fe9 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -317,7 +317,10 @@ public: "indexes can be specified as arguments.\n" "Use the thread-index \"all\" to see all threads.\n" "Use the thread-index \"unique\" to see threads grouped by unique " - "call stacks.", + "call stacks.\n" + "Use 'settings set frame-format' to customize the printing of " + "frames in the backtrace and 'settings set thread-format' to " + "customize the thread header.", nullptr, eCommandRequiresProcess | eCommandRequiresThread | eCommandTryTargetAPILock | eCommandProcessMustBeLaunched | @@ -1388,7 +1391,9 @@ public: CommandObjectThreadList(CommandInterpreter &interpreter) : CommandObjectParsed( interpreter, "thread list", - "Show a summary of each thread in the current target process.", + "Show a summary of each thread in the current target process. " + "Use 'settings set thread-format' to customize the individual " + "thread listings.", "thread list", eCommandRequiresProcess | eCommandTryTargetAPILock | eCommandProcessMustBeLaunched | eCommandProcessMustBePaused) {} diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 78230e54dcd..c8dac275e34 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -744,7 +744,9 @@ void CommandInterpreter::LoadCommandDictionary() { *this, "_regexp-bt", "Show the current thread's call stack. Any numeric argument " "displays at most that many " - "frames. The argument 'all' displays all threads.", + "frames. The argument 'all' displays all threads. Use 'settings" + " set frame-format' to customize the printing of individual frames " + "and 'settings set thread-format' to customize the thread header.", "bt [<digit> | all]", 2, 0, false)); if (bt_regex_cmd_up) { // accept but don't document "bt -c <number>" -- before bt was a regex |