Skip to content

Commit 98f105a

Browse files
authored
[lldb] Add the word "backtrace" to bt help string (#92618)
We noticed that `apropos backtrace` did not return the `bt` alias. This change adds the word "backtrace" to the help for `bt`. It also updates `thread backtrace` to keep the language used roughly in sync.
1 parent 3e15c97 commit 98f105a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lldb/source/Commands/CommandObjectThread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ class CommandObjectThreadBacktrace : public CommandObjectIterateOverThreads {
114114
CommandObjectThreadBacktrace(CommandInterpreter &interpreter)
115115
: CommandObjectIterateOverThreads(
116116
interpreter, "thread backtrace",
117-
"Show thread call stacks. Defaults to the current thread, thread "
118-
"indexes can be specified as arguments.\n"
117+
"Show backtraces of thread call stacks. Defaults to the current "
118+
"thread, thread indexes can be specified as arguments.\n"
119119
"Use the thread-index \"all\" to see all threads.\n"
120120
"Use the thread-index \"unique\" to see threads grouped by unique "
121121
"call stacks.\n"

lldb/source/Interpreter/CommandInterpreter.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -828,11 +828,11 @@ void CommandInterpreter::LoadCommandDictionary() {
828828
std::unique_ptr<CommandObjectRegexCommand> bt_regex_cmd_up(
829829
new CommandObjectRegexCommand(
830830
*this, "_regexp-bt",
831-
"Show the current thread's call stack. Any numeric argument "
832-
"displays at most that many "
833-
"frames. The argument 'all' displays all threads. Use 'settings"
834-
" set frame-format' to customize the printing of individual frames "
835-
"and 'settings set thread-format' to customize the thread header.",
831+
"Show backtrace of the current thread's call stack. Any numeric "
832+
"argument displays at most that many frames. The argument 'all' "
833+
"displays all threads. Use 'settings set frame-format' to customize "
834+
"the printing of individual frames and 'settings set thread-format' "
835+
"to customize the thread header.",
836836
"bt [<digit> | all]", 0, false));
837837
if (bt_regex_cmd_up) {
838838
// accept but don't document "bt -c <number>" -- before bt was a regex

0 commit comments

Comments
 (0)