diff options
Diffstat (limited to 'lldb/source/Target/LanguageRuntime.cpp')
| -rw-r--r-- | lldb/source/Target/LanguageRuntime.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Target/LanguageRuntime.cpp b/lldb/source/Target/LanguageRuntime.cpp index 24da18f8388..cacb491392f 100644 --- a/lldb/source/Target/LanguageRuntime.cpp +++ b/lldb/source/Target/LanguageRuntime.cpp @@ -287,12 +287,10 @@ void LanguageRuntime::InitializeCommands(CommandObject *parent) { command_callback(parent->GetCommandInterpreter()); if (command) { // the CommandObject vended by a Language plugin cannot be created once - // and cached because - // we may create multiple debuggers and need one instance of the command - // each - the implementing function - // is meant to create a new instance of the command each time it is - // invoked - parent->LoadSubCommand(command->GetCommandName(), command); + // and cached because we may create multiple debuggers and need one + // instance of the command each - the implementing function is meant to + // create a new instance of the command each time it is invoked. + parent->LoadSubCommand(command->GetCommandName().str().c_str(), command); } } } |

