aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2022-04-05 09:40:11 -0700
committerJim Ingham <jingham@apple.com>2022-04-05 09:42:05 -0700
commit8c3a6fe37fc36537b939ea75a59fb2d5963246fb (patch)
treea812993008966fea2d22369207244c450792f8da /lldb/source/Interpreter/CommandInterpreter.cpp
parent016e59bf2cbf3e550a1fca5c4de204d84565ab03 (diff)
downloadllvm-8c3a6fe37fc36537b939ea75a59fb2d5963246fb.zip
llvm-8c3a6fe37fc36537b939ea75a59fb2d5963246fb.tar.gz
llvm-8c3a6fe37fc36537b939ea75a59fb2d5963246fb.tar.bz2
Fix a mistyping introduced with the new container command.
I also added a call to help in the test which was crashing before the test, and not after.
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index f9ba5c3..760a33a 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -1445,7 +1445,7 @@ void CommandInterpreter::GetHelp(CommandReturnObject &result,
result.AppendMessage("Current user-defined container commands:");
result.AppendMessage("");
max_len = FindLongestCommandWord(m_user_mw_dict);
- for (pos = m_user_dict.begin(); pos != m_user_mw_dict.end(); ++pos) {
+ for (pos = m_user_mw_dict.begin(); pos != m_user_mw_dict.end(); ++pos) {
OutputFormattedHelpText(result.GetOutputStream(), pos->first, "--",
pos->second->GetHelp(), max_len);
}