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:
		
							parent
							
								
									550f7f7e19
								
							
						
					
					
						commit
						ae99b0b3cc
					
				| 
						 | 
					@ -207,7 +207,7 @@ PlatformiOSSimulator::ResolveExecutable (const FileSpec &exe_file,
 | 
				
			||||||
                                                 NULL, 
 | 
					                                                 NULL, 
 | 
				
			||||||
                                                 NULL);
 | 
					                                                 NULL);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
            if (exe_module_sp->GetObjectFile())
 | 
					            if (exe_module_sp && exe_module_sp->GetObjectFile())
 | 
				
			||||||
                return error;
 | 
					                return error;
 | 
				
			||||||
            exe_module_sp.reset();
 | 
					            exe_module_sp.reset();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					@ -411,14 +411,6 @@ PlatformiOSSimulator::FindProcesses (const ProcessInstanceInfoMatch &match_info,
 | 
				
			||||||
    return 0;
 | 
					    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
 | 
					bool
 | 
				
			||||||
PlatformiOSSimulator::GetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch)
 | 
					PlatformiOSSimulator::GetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue