mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user