summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/Mach-O
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2018-08-15 23:10:32 +0000
committerJim Ingham <jingham@apple.com>2018-08-15 23:10:32 +0000
commit8a5d7a2784b03bc9a409cb8378ec5d26863dc38d (patch)
tree34c9c2d00318052c6263f4e1fbd4f4cdd910d4e7 /lldb/source/Plugins/ObjectFile/Mach-O
parentba58c3a3a57e7fc8af0ca07a763b914ef25a3afd (diff)
downloadbcm5719-llvm-8a5d7a2784b03bc9a409cb8378ec5d26863dc38d.tar.gz
bcm5719-llvm-8a5d7a2784b03bc9a409cb8378ec5d26863dc38d.zip
Fix a little thinko in generating ___lldb_unnamed_symbol symbols
when we have only an in-memory copy of the binary. Also added a test for the generation of these symbols in the in-memory and regular cases. <rdar://problem/43160401> llvm-svn: 339833
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/Mach-O')
-rw-r--r--lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index 39b3c644adb..7365f482c89 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -2351,7 +2351,8 @@ size_t ObjectFileMachO::ParseSymtab() {
indirect_syms_data_sp, 0,
indirect_syms_data_sp->GetByteSize());
}
- } else if (memory_module_load_level >=
+ }
+ if (memory_module_load_level >=
eMemoryModuleLoadLevelPartial) {
if (function_starts_load_command.cmd) {
const addr_t func_start_addr =
OpenPOWER on IntegriCloud