This commit is contained in:
T0b1
2024-05-12 01:25:11 +02:00
parent eb98d911f6
commit cdf015302a
3 changed files with 62 additions and 1 deletions

View File

@@ -191,7 +191,11 @@ void LLDBBackend::handle_state_change(lldb::StateType state)
auto sel_thread = _process->GetSelectedThread();
auto change_reason = StateChangeReason::unknown;
auto extra = 0;
switch (sel_thread.GetStopReason())
auto stop_reason = sel_thread.GetStopReason();
// step over seems to cause the reason to be eStopReasonPlanComplete, when pausing the stop reason seems to be eStopReasonSignal
spdlog::trace("Thread stopped because of reason {}",
static_cast<int>(stop_reason));
switch (stop_reason)
{
case eStopReasonBreakpoint:
{