commit | adf9e3db9be8f32e7eda7d4bb5b3b8f4d59ce46d | [log] [tgz] |
---|---|---|
author | Jason Molenda <jmolenda@apple.com> | Wed Apr 10 05:58:57 2013 +0000 |
committer | Jason Molenda <jmolenda@apple.com> | Wed Apr 10 05:58:57 2013 +0000 |
tree | afcb9557184fc92c0cc1f1d6fa71a051197574d7 | |
parent | e9b48f056e241bee683fd87c8eeab08b6f73a722 [diff] |
When ObjectFileMachO::ParseSections() notices that it has a truncated file, zero out the SectionList so we don't try to do anything with this file. Currently we end up crashing later in the debug session when we read past the end of the file -- this at least gets us closer with something like ProcessMachCore printing "error: core file has no sections". <rdar://problem/13468295> git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@179152 91177308-0d34-0410-b5e6-96231b3b80d8