diff options
| author | Tamas Berghammer <tberghammer@google.com> | 2015-03-24 11:15:23 +0000 |
|---|---|---|
| committer | Tamas Berghammer <tberghammer@google.com> | 2015-03-24 11:15:23 +0000 |
| commit | 7cb18bf537ed319eaa06f12ed39f85594bed641a (patch) | |
| tree | e5274e908c82a83438c117d6cc750a81c2b67462 /lldb/source/Plugins/Platform/Windows | |
| parent | 2a403d1c01e74a6c0fab3a7d70d06ee901209c76 (diff) | |
| download | bcm5719-llvm-7cb18bf537ed319eaa06f12ed39f85594bed641a.tar.gz bcm5719-llvm-7cb18bf537ed319eaa06f12ed39f85594bed641a.zip | |
Fetch module specification from remote process also
Previously the remote module sepcification was fetched only from the
remote platform. With this CL if we have a remote process then we ask it
if it have any information from a given module. It is required because
on android the dynamic linker only reports the name of the SO file and
the platform can't always find it without a full path (the process can
do it based on /proc/<pid>/maps).
Differential revision: http://reviews.llvm.org/D8547
llvm-svn: 233061
Diffstat (limited to 'lldb/source/Plugins/Platform/Windows')
| -rw-r--r-- | lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp | 3 | ||||
| -rw-r--r-- | lldb/source/Plugins/Platform/Windows/PlatformWindows.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp index c08feeff7e3..9520cba1407 100644 --- a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp +++ b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp @@ -617,6 +617,7 @@ PlatformWindows::GetFileWithUUID (const FileSpec &platform_file, Error PlatformWindows::GetSharedModule (const ModuleSpec &module_spec, + Process* process, ModuleSP &module_sp, const FileSpecList *module_search_paths_ptr, ModuleSP *old_module_sp_ptr, @@ -632,6 +633,7 @@ PlatformWindows::GetSharedModule (const ModuleSpec &module_spec, if (m_remote_platform_sp) { error = m_remote_platform_sp->GetSharedModule (module_spec, + process, module_sp, module_search_paths_ptr, old_module_sp_ptr, @@ -643,6 +645,7 @@ PlatformWindows::GetSharedModule (const ModuleSpec &module_spec, { // Fall back to the local platform and find the file locally error = Platform::GetSharedModule (module_spec, + process, module_sp, module_search_paths_ptr, old_module_sp_ptr, diff --git a/lldb/source/Plugins/Platform/Windows/PlatformWindows.h b/lldb/source/Plugins/Platform/Windows/PlatformWindows.h index 7a785656399..c5d4c7dcdf2 100644 --- a/lldb/source/Plugins/Platform/Windows/PlatformWindows.h +++ b/lldb/source/Plugins/Platform/Windows/PlatformWindows.h @@ -133,10 +133,11 @@ public: lldb_private::Error GetSharedModule(const lldb_private::ModuleSpec &module_spec, + lldb_private::Process* process, lldb::ModuleSP &module_sp, const lldb_private::FileSpecList *module_search_paths_ptr, lldb::ModuleSP *old_module_sp_ptr, - bool *did_create_ptr); + bool *did_create_ptr) override; virtual bool GetSupportedArchitectureAtIndex(uint32_t idx, lldb_private::ArchSpec &arch); |

