diff --git a/core/adapters/lldbadapter.cpp b/core/adapters/lldbadapter.cpp index 09056dba..b1e69e0a 100644 --- a/core/adapters/lldbadapter.cpp +++ b/core/adapters/lldbadapter.cpp @@ -1106,7 +1106,17 @@ DebugStopReason LldbAdapter::StepReturn() // return DebugStopReason::InternalError; // } //#else - InvokeBackendCommand("finish"); + auto result = InvokeBackendCommand("finish"); + if (result.rfind("error: ", 0) == 0) + { + DebuggerEvent event; + event.type = ErrorEventType; + event.data.errorData.shortError = "Step return failed"; + event.data.errorData.error = fmt::format("LLDB: step return failed, {}", result); + PostDebuggerEvent(event); + return DebugStopReason::InternalError; + } + //#endif return StopReason(); }