PatriosTheGreat updated this revision to Diff 348919. PatriosTheGreat added a comment.
Select most related frame only in threads which were stopped with reason. This diff is for further discussion. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103271/new/ https://reviews.llvm.org/D103271 Files: lldb/source/Target/Thread.cpp Index: lldb/source/Target/Thread.cpp =================================================================== --- lldb/source/Target/Thread.cpp +++ lldb/source/Target/Thread.cpp @@ -606,7 +606,9 @@ void Thread::WillStop() { ThreadPlan *current_plan = GetCurrentPlan(); - SelectMostRelevantFrame(); + lldb::StopReason stop_reason = GetStopReason(); + if (stop_reason != lldb::StopReason::eStopReasonNone) + SelectMostRelevantFrame(); // FIXME: I may decide to disallow threads with no plans. In which // case this should go to an assert.
Index: lldb/source/Target/Thread.cpp =================================================================== --- lldb/source/Target/Thread.cpp +++ lldb/source/Target/Thread.cpp @@ -606,7 +606,9 @@ void Thread::WillStop() { ThreadPlan *current_plan = GetCurrentPlan(); - SelectMostRelevantFrame(); + lldb::StopReason stop_reason = GetStopReason(); + if (stop_reason != lldb::StopReason::eStopReasonNone) + SelectMostRelevantFrame(); // FIXME: I may decide to disallow threads with no plans. In which // case this should go to an assert.
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits