summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBThread.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2020-02-05 15:43:55 -0800
committerPavel Labath <labath@google.com>2020-02-05 15:51:38 -0800
commit98b273c893b2c218c56fe5c03cbb6f082cce008c (patch)
tree8dfe4fcfbb0e724d4674ff1766c5f44e47e6603f /lldb/source/API/SBThread.cpp
parent5f1e45fd6764f9e31de1c9d6d7581645eea0c696 (diff)
Revert "[lldb/Target] Add Assert StackFrame Recognizer"
This reverts commit 2b7f32892b76cdfbe075300a5bf4a52e1b674bc7 because of test failures due to dangling pointers.
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
-rw-r--r--lldb/source/API/SBThread.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index 049a0b285e16..6fe4f66763cb 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -325,8 +325,7 @@ size_t SBThread::GetStopDescription(char *dst, size_t dst_len) {
StopInfoSP stop_info_sp = exe_ctx.GetThreadPtr()->GetStopInfo();
if (stop_info_sp) {
- const char *stop_desc =
- exe_ctx.GetThreadPtr()->GetStopDescription().c_str();
+ const char *stop_desc = stop_info_sp->GetDescription();
if (stop_desc) {
if (dst)
return ::snprintf(dst, dst_len, "%s", stop_desc);