summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBThread.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-12-05 00:16:59 +0000
committerGreg Clayton <gclayton@apple.com>2012-12-05 00:16:59 +0000
commit90ba81150ef36277659edcc880d5440bd00ba997 (patch)
treeb6f4584b58e3b66240b7ecee9a993f34c0801e10 /lldb/source/API/SBThread.cpp
parentd31802c1f6ee4018bf362a1034bab0802c07024b (diff)
downloadbcm5719-llvm-90ba81150ef36277659edcc880d5440bd00ba997.tar.gz
bcm5719-llvm-90ba81150ef36277659edcc880d5440bd00ba997.zip
<rdar://problem/12649160>
Added the ability to debug through your process exec'ing itself to the same architecture. llvm-svn: 169340
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
-rw-r--r--lldb/source/API/SBThread.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index 4dd29d71493..e083939e333 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -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;
}
OpenPOWER on IntegriCloud