Fixed the issue that was causing our monitor process threads to crash, it

turned out to be unitialized data in the ProcessLaunchInfo default constructor. 
Turning on MallocScribble in the environment helped track this down. 

When we launch and attach using the host layer, we now inform the process that
it shouldn't detach when by calling an accessor.

llvm-svn: 144882
This commit is contained in:
Greg Clayton
2011-11-17 04:46:02 +00:00
parent 857f9d6e5e
commit e24c4acf6c
6 changed files with 67 additions and 9 deletions

View File

@@ -272,7 +272,7 @@ Debugger::Clear()
ProcessSP process_sp (m_target_list.GetTargetAtIndex (i)->GetProcessSP());
if (process_sp)
{
if (process_sp->AttachedToProcess())
if (process_sp->GetShouldDetach())
process_sp->Detach();
else
process_sp->Destroy();