forked from OSchip/llvm-project
Fix crash when connecting to gdbserver without loading a file first.
Patch from Abid, Hafiz. llvm-svn: 188776
This commit is contained in:
parent
bdd81d76f8
commit
0584d7fc34
|
|
@ -449,6 +449,9 @@ DynamicLoaderPOSIXDYLD::ComputeLoadOffset()
|
|||
return LLDB_INVALID_ADDRESS;
|
||||
|
||||
ModuleSP module = m_process->GetTarget().GetExecutableModule();
|
||||
if (!module)
|
||||
return LLDB_INVALID_ADDRESS;
|
||||
|
||||
ObjectFile *exe = module->GetObjectFile();
|
||||
Address file_entry = exe->GetEntryPointAddress();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue