summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2011-02-04 00:16:49 +0000
committerCaroline Tice <ctice@apple.com>2011-02-04 00:16:49 +0000
commit73fd2728b945c68371a8dd06dda19162fb58f2d4 (patch)
tree7c7c92f82fc2a3390f0ac01a4bef4f50f927d0b8 /lldb/source/Commands
parent7cadb2f65be918d6012cea09da28196ef1641a2f (diff)
downloadbcm5719-llvm-73fd2728b945c68371a8dd06dda19162fb58f2d4.tar.gz
bcm5719-llvm-73fd2728b945c68371a8dd06dda19162fb58f2d4.zip
Modify 'apropos' command to search settings variable descriptions as well.
llvm-svn: 124836
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r--lldb/source/Commands/CommandObjectApropos.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectApropos.cpp b/lldb/source/Commands/CommandObjectApropos.cpp
index 1bab2c97d9b..1d003fc888e 100644
--- a/lldb/source/Commands/CommandObjectApropos.cpp
+++ b/lldb/source/Commands/CommandObjectApropos.cpp
@@ -95,6 +95,21 @@ CommandObjectApropos::Execute
max_len);
}
+
+
+ StreamString settings_search_results;
+ lldb::UserSettingsControllerSP root = Debugger::GetSettingsController ();
+ std::string settings_prefix = root->GetLevelName().AsCString();
+
+ UserSettingsController::SearchAllSettingsDescriptions (m_interpreter, root, settings_prefix, search_word,
+ settings_search_results);
+
+ if (settings_search_results.GetSize() > 0)
+ {
+ result.AppendMessageWithFormat ("\nThe following settings variables may relate to '%s': \n\n", search_word);
+ result.AppendMessageWithFormat ("%s", settings_search_results.GetData());
+ }
+
result.SetStatus (eReturnStatusSuccessFinishNoResult);
}
else
OpenPOWER on IntegriCloud