forked from OSchip/llvm-project
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:
parent
4dedcd7eab
commit
3ae82449e8
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue