The dyld shared cache class table is not present in the iOS simulator, so do not actually warn to people when running under the simulator

rdar://20403987

llvm-svn: 234537
This commit is contained in:
Enrico Granata 2015-04-09 21:33:57 +00:00
parent 4dedcd7eab
commit 3ae82449e8
1 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,7 @@
#include "lldb/Symbol/TypeList.h"
#include "lldb/Symbol/VariableList.h"
#include "lldb/Target/ExecutionContext.h"
#include "lldb/Target/Platform.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/RegisterContext.h"
#include "lldb/Target/Target.h"
@ -1577,6 +1578,18 @@ AppleObjCRuntimeV2::WarnIfNoClassesCached ()
if (m_noclasses_warning_emitted)
return;
static ConstString g_ios_simulator("ios-simulator");
if (m_process &&
m_process->GetTarget().GetPlatform() &&
m_process->GetTarget().GetPlatform()->GetPluginName() == g_ios_simulator)
{
// the iOS simulator does not have the objc_opt_ro class table
// so don't actually complain to the user
m_noclasses_warning_emitted = true;
return;
}
Debugger &debugger(GetProcess()->GetTarget().GetDebugger());
if (debugger.GetAsyncOutputStream())