diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 8ccdebb..2c22880 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -162,7 +162,7 @@ public: // If our listener is NULL, users aren't allows to launch char filename[PATH_MAX]; - const Module *exe_module = target->GetExecutableModule().get(); + const Module *exe_module = target->GetExecutableModulePointer(); if (exe_module == NULL) { @@ -762,22 +762,22 @@ public: { // Okay, we're done. Last step is to warn if the executable module has changed: char new_path[PATH_MAX]; + ModuleSP new_exec_module_sp (target->GetExecutableModule()); if (!old_exec_module_sp) { // We might not have a module if we attached to a raw pid... - ModuleSP new_module_sp (target->GetExecutableModule()); - if (new_module_sp) + if (new_exec_module_sp) { - new_module_sp->GetFileSpec().GetPath(new_path, PATH_MAX); + new_exec_module_sp->GetFileSpec().GetPath(new_path, PATH_MAX); result.AppendMessageWithFormat("Executable module set to \"%s\".\n", new_path); } } - else if (old_exec_module_sp->GetFileSpec() != target->GetExecutableModule()->GetFileSpec()) + else if (old_exec_module_sp->GetFileSpec() != new_exec_module_sp->GetFileSpec()) { char old_path[PATH_MAX]; - old_exec_module_sp->GetFileSpec().GetPath(old_path, PATH_MAX); - target->GetExecutableModule()->GetFileSpec().GetPath (new_path, PATH_MAX); + old_exec_module_sp->GetFileSpec().GetPath (old_path, PATH_MAX); + new_exec_module_sp->GetFileSpec().GetPath (new_path, PATH_MAX); result.AppendWarningWithFormat("Executable module changed from \"%s\" to \"%s\".\n", old_path, new_path); |