diff options
| author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-05-07 22:46:38 +0000 |
|---|---|---|
| committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-05-07 22:46:38 +0000 |
| commit | bf9b4c171a6481ef1341b754c67da82559b76450 (patch) | |
| tree | 1551eecaf552f0020a5d629d7fb49d886598fcb2 /lldb/source/Plugins/DynamicLoader | |
| parent | 8f1fb6f03df0e79ac6ee6119327f0edf9870554b (diff) | |
| download | bcm5719-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.cpp | 7 |
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 |

