summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-05-07 22:46:38 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-05-07 22:46:38 +0000
commitbf9b4c171a6481ef1341b754c67da82559b76450 (patch)
tree1551eecaf552f0020a5d629d7fb49d886598fcb2 /lldb/source/Plugins/DynamicLoader
parent8f1fb6f03df0e79ac6ee6119327f0edf9870554b (diff)
downloadbcm5719-llvm-bf9b4c171a6481ef1341b754c67da82559b76450.tar.gz
bcm5719-llvm-bf9b4c171a6481ef1341b754c67da82559b76450.zip
Adding support for process attach by pid on Linux.
llvm-svn: 181374
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader')
-rw-r--r--lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
index e832739bdc0..3e1b52938f4 100644
--- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
+++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
@@ -59,7 +59,12 @@ DYLDRendezvous::DYLDRendezvous(Process *process)
m_removed_soentries()
{
// Cache a copy of the executable path
- m_process->GetTarget().GetExecutableModule().get()->GetFileSpec().GetPath(m_exe_path, PATH_MAX);
+ if (m_process)
+ {
+ Module *exe_mod = m_process->GetTarget().GetExecutableModulePointer();
+ if (exe_mod)
+ exe_mod->GetFileSpec().GetPath(m_exe_path, PATH_MAX);
+ }
}
bool
OpenPOWER on IntegriCloud