diff options
author | Oleksiy Vyalov <ovyalov@google.com> | 2014-11-17 22:16:42 +0000 |
---|---|---|
committer | Oleksiy Vyalov <ovyalov@google.com> | 2014-11-17 22:16:42 +0000 |
commit | 6edef20405d2f6ac190d796b215d6d288e8dc125 (patch) | |
tree | c95bc3e385b4d030624bf296c9b98f22f468dc82 | |
parent | a7fb5cf1e23b60a82919d24a704c3ea48cf69375 (diff) | |
download | bcm5719-llvm-6edef20405d2f6ac190d796b215d6d288e8dc125.tar.gz bcm5719-llvm-6edef20405d2f6ac190d796b215d6d288e8dc125.zip |
Fix broken Linux build after signature change of ResolveExecutable.
llvm-svn: 222182
-rw-r--r-- | lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 7 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp | 13 |
3 files changed, 13 insertions, 11 deletions
diff --git a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp index ec14ae3e829..5d065ac0661 100644 --- a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp +++ b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp @@ -823,10 +823,10 @@ PlatformLinux::LaunchNativeProcess ( // Retrieve the exe module. lldb::ModuleSP exe_module_sp; + ModuleSpec exe_module_spec(launch_info.GetExecutableFile(), launch_info.GetArchitecture()); Error error = ResolveExecutable ( - launch_info.GetExecutableFile (), - launch_info.GetArchitecture (), + exe_module_spec, exe_module_sp, NULL); diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index f13b715612d..8ba3e69db42 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -48,6 +48,7 @@ #include "lldb/Core/Debugger.h" #include "lldb/Core/Error.h" #include "lldb/Core/Module.h" +#include "lldb/Core/ModuleSpec.h" #include "lldb/Core/RegisterValue.h" #include "lldb/Core/Scalar.h" #include "lldb/Core/State.h" @@ -158,10 +159,10 @@ namespace // Resolve the executable module. ModuleSP exe_module_sp; + ModuleSpec exe_module_spec(process_info.GetExecutableFile(), platform.GetSystemArchitecture ()); FileSpecList executable_search_paths (Target::GetDefaultExecutableSearchPaths ()); Error error = platform.ResolveExecutable( process_info.GetExecutableFile (), - platform.GetSystemArchitecture (), exe_module_sp, executable_search_paths.GetSize () ? &executable_search_paths : NULL); @@ -1441,8 +1442,8 @@ NativeProcessLinux::AttachToInferior (lldb::pid_t pid, lldb_private::Error &erro // Resolve the executable module ModuleSP exe_module_sp; FileSpecList executable_search_paths (Target::GetDefaultExecutableSearchPaths()); - - error = platform_sp->ResolveExecutable(process_info.GetExecutableFile(), HostInfo::GetArchitecture(), exe_module_sp, + ModuleSpec exe_module_spec(process_info.GetExecutableFile(), HostInfo::GetArchitecture()); + error = platform_sp->ResolveExecutable(exe_module_spec, exe_module_sp, executable_search_paths.GetSize() ? &executable_search_paths : NULL); if (!error.Success()) return; diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp index 07a3972ce92..702ff800394 100644 --- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp +++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp @@ -16,6 +16,7 @@ // Other libraries and framework includes #include "lldb/Breakpoint/Watchpoint.h" #include "lldb/Core/Module.h" +#include "lldb/Core/ModuleSpec.h" #include "lldb/Core/PluginManager.h" #include "lldb/Core/State.h" #include "lldb/Host/FileSpec.h" @@ -140,8 +141,8 @@ ProcessPOSIX::DoAttachToProcessWithID(lldb::pid_t pid) // Resolve the executable module ModuleSP exe_module_sp; FileSpecList executable_search_paths (Target::GetDefaultExecutableSearchPaths()); - error = platform_sp->ResolveExecutable(process_info.GetExecutableFile(), - m_target.GetArchitecture(), + ModuleSpec exe_module_spec(process_info.GetExecutableFile(), m_target.GetArchitecture()); + error = platform_sp->ResolveExecutable(exe_module_spec, exe_module_sp, executable_search_paths.GetSize() ? &executable_search_paths : NULL); if (!error.Success()) @@ -365,11 +366,11 @@ ProcessPOSIX::DoDidExec() ProcessInstanceInfo process_info; platform_sp->GetProcessInfo(GetID(), process_info); ModuleSP exe_module_sp; + ModuleSpec exe_module_spec(process_info.GetExecutableFile(), target->GetArchitecture()); FileSpecList executable_search_paths (Target::GetDefaultExecutableSearchPaths()); - Error error = platform_sp->ResolveExecutable(process_info.GetExecutableFile(), - target->GetArchitecture(), - exe_module_sp, - executable_search_paths.GetSize() ? &executable_search_paths : NULL); + Error error = platform_sp->ResolveExecutable(exe_module_spec, + exe_module_sp, + executable_search_paths.GetSize() ? &executable_search_paths : NULL); if (!error.Success()) return; target->SetExecutableModule(exe_module_sp, true); |