summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectApropos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectApropos.cpp')
-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