Remove insufficient linkedit address check; the problem
authorJason Molenda <jmolenda@apple.com>
Thu, 13 Dec 2012 01:13:00 +0000 (01:13 +0000)
committerJason Molenda <jmolenda@apple.com>
Thu, 13 Dec 2012 01:13:00 +0000 (01:13 +0000)
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.

llvm-svn: 170068

lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

index 936c1e9..4d6d007 100644 (file)
@@ -1326,7 +1326,7 @@ ObjectFileMachO::ParseSymtab (bool minimize)
                     // 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);