Fixed the iOS simulator platform:

- Fixed a crash when the executable module
  couldn't be found.
- Fixed a problem that made it impossible
  to attach to processes in the simulator
  using the SBTarget::Attach.

llvm-svn: 166355
This commit is contained in:
Sean Callanan 2012-10-20 00:19:59 +00:00
parent 550f7f7e19
commit ae99b0b3cc
1 changed files with 1 additions and 9 deletions

View File

@ -207,7 +207,7 @@ PlatformiOSSimulator::ResolveExecutable (const FileSpec &exe_file,
NULL,
NULL);
if (exe_module_sp->GetObjectFile())
if (exe_module_sp && exe_module_sp->GetObjectFile())
return error;
exe_module_sp.reset();
}
@ -411,14 +411,6 @@ PlatformiOSSimulator::FindProcesses (const ProcessInstanceInfoMatch &match_info,
return 0;
}
bool
PlatformiOSSimulator::GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info)
{
// TODO: if connected, send a packet to get the remote process info
process_info.Clear();
return false;
}
bool
PlatformiOSSimulator::GetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch)
{