Remove insufficient linkedit address check; the problem
is deeper than that and avoiding the crash in this
one part of code won't solve anything. I know where
the real problem is now.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@170068 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index 936c1e9..4d6d007 100644
--- a/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -1326,7 +1326,7 @@
// data across can slow down debug launch times, so we optimize this by
// reading the memory for the __LINKEDIT section from this process.
PlatformSP platform_sp (target.GetPlatform());
- if (platform_sp && platform_sp->IsHost() && linkedit_load_addr != LLDB_INVALID_ADDRESS)
+ if (platform_sp && platform_sp->IsHost())
{
data_was_read = true;
nlist_data.SetData((void *)symoff_addr, nlist_data_byte_size, eByteOrderLittle);