summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/Mach-O
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-03-08 02:39:03 +0000
committerSean Callanan <scallanan@apple.com>2012-03-08 02:39:03 +0000
commit226b70c154fa1984ff189c434fefa1fee0af68df (patch)
treeb683d44826b3ce2e64c811d9ffc70392e7d9e23e /lldb/source/Plugins/ObjectFile/Mach-O
parent7dd7c08419f2eab49b1c9158e09acda200ae6ae9 (diff)
downloadbcm5719-llvm-226b70c154fa1984ff189c434fefa1fee0af68df.tar.gz
bcm5719-llvm-226b70c154fa1984ff189c434fefa1fee0af68df.zip
Updated the revision of LLVM/Clang used by LLDB.
This takes two important changes: - Calling blocks is now supported. You need to cast their return values, but that works fine. - We now can correctly run JIT-compiled expressions that use floating-point numbers. Also, we have taken a fix that allows us to ignore access control in Objective-C as in C++. llvm-svn: 152286
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/Mach-O')
-rw-r--r--lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index e5e0473f9de..ac03b177c1b 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -2217,6 +2217,17 @@ ObjectFileMachO::GetEntryPointAddress ()
}
}
break;
+ case LoadCommandMain:
+ {
+ ConstString text_segment_name ("__TEXT");
+ uint64_t entryoffset = m_data.GetU64(&offset);
+ SectionSP text_segment_sp = GetSectionList()->FindSectionByName(text_segment_name);
+ if (text_segment_sp)
+ {
+ done = true;
+ start_address = text_segment_sp->GetFileAddress() + entryoffset;
+ }
+ }
default:
break;
OpenPOWER on IntegriCloud