diff options
author | Caroline Tice <ctice@apple.com> | 2010-09-09 06:25:08 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-09-09 06:25:08 +0000 |
commit | 101c7c2060354f6e91efc65f9c4ea9f13a591152 (patch) | |
tree | d8423df9d08dfc78cd1615f317468f5ff70c9e76 /lldb/source/Interpreter/CommandObject.cpp | |
parent | 4adbaf184340a71925eea83a2811c4763e281f38 (diff) | |
download | bcm5719-llvm-101c7c2060354f6e91efc65f9c4ea9f13a591152.tar.gz bcm5719-llvm-101c7c2060354f6e91efc65f9c4ea9f13a591152.zip |
Make all debugger-level user settable variables into instance variables.
Make get/set variable at the debugger level always set the particular debugger's instance variables rather than
the default variables.
llvm-svn: 113474
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandObject.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index 88841c4bae7..571c3d49f14 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -177,7 +177,8 @@ CommandObject::ParseOptions else { // No error string, output the usage information into result - options->GenerateOptionUsage (result.GetErrorStream(), this); + options->GenerateOptionUsage (result.GetErrorStream(), this, + interpreter.GetDebugger().GetInstanceName().AsCString()); } // Set the return status to failed (this was an error). result.SetStatus (eReturnStatusFailed); @@ -396,7 +397,7 @@ contains_string (const char *s1, const char *s2) } bool -CommandObject::HelpTextContainsWord (const char *search_word) +CommandObject::HelpTextContainsWord (const char *search_word, CommandInterpreter &interpreter) { const char *short_help; const char *long_help; @@ -421,7 +422,7 @@ CommandObject::HelpTextContainsWord (const char *search_word) && GetOptions() != NULL) { StreamString usage_help; - GetOptions()->GenerateOptionUsage (usage_help, this); + GetOptions()->GenerateOptionUsage (usage_help, this, interpreter.GetDebugger().GetInstanceName().AsCString()); if (usage_help.GetSize() > 0) { const char *usage_text = usage_help.GetData(); |