commit | d06bb5007b310b5498f7c47006022561ce1ceb4d | [log] [tgz] |
---|---|---|
author | Jason Molenda <jmolenda@apple.com> | Thu Oct 25 00:25:13 2012 +0000 |
committer | Jason Molenda <jmolenda@apple.com> | Thu Oct 25 00:25:13 2012 +0000 |
tree | 8249c61db0b7cd6438bf8484aeefc0d5aafc07b1 | |
parent | 0acf4c6de1540f316e0c2b1bae02a943dba655de [diff] [blame] |
Identify a kdp session that is connecting to an EFI monitor, use a DynamicLoaderStatic dynamic loader for the session instead of a kernel or user dynamic loader. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@166652 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp b/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp index df5e535..f7adc7a 100644 --- a/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp +++ b/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
@@ -525,6 +525,17 @@ return uuid; } +bool +CommunicationKDP::RemoteIsEFI () +{ + if (GetKernelVersion() == NULL) + return false; + if (strncmp (m_kernel_version.c_str(), "EFI", 3) == 0) + return true; + else + return false; +} + lldb::addr_t CommunicationKDP::GetLoadAddress () {