<rdar://problem/12649160>

Added the ability to debug through your process exec'ing itself to the same architecture.

llvm-svn: 169340
This commit is contained in:
Greg Clayton
2012-12-05 00:16:59 +00:00
parent d31802c1f6
commit 90ba81150e
24 changed files with 257 additions and 13 deletions

View File

@@ -147,6 +147,7 @@ SBThread::GetStopReasonDataCount ()
case eStopReasonInvalid:
case eStopReasonNone:
case eStopReasonTrace:
case eStopReasonExec:
case eStopReasonPlanComplete:
// There is no data for these stop reasons.
return 0;
@@ -204,6 +205,7 @@ SBThread::GetStopReasonDataAtIndex (uint32_t idx)
case eStopReasonInvalid:
case eStopReasonNone:
case eStopReasonTrace:
case eStopReasonExec:
case eStopReasonPlanComplete:
// There is no data for these stop reasons.
return 0;
@@ -336,6 +338,14 @@ SBThread::GetStopDescription (char *dst, size_t dst_len)
}
break;
case eStopReasonExec:
{
char exc_desc[] = "exec";
stop_desc = exc_desc;
stop_desc_len = sizeof(exc_desc); // Include the NULL byte for size
}
break;
default:
break;
}