From ebbb068590f1b60ba4ef3c2efaa88c4fbbf82536 Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Wed, 1 Apr 2020 20:07:55 -0400 Subject: [PATCH] Report missing DAC error for cross DAC clrstack -i (#973) * Report missing DAC error for cross DAC clrstack -i * Feedback --- src/SOS/Strike/strike.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SOS/Strike/strike.cpp b/src/SOS/Strike/strike.cpp index 091a42e83..8bbe15f06 100644 --- a/src/SOS/Strike/strike.cpp +++ b/src/SOS/Strike/strike.cpp @@ -13311,7 +13311,11 @@ public: HRESULT Status; ICorDebugProcess* pCorDebugProcess; - IfFailRet(g_pRuntime->GetCorDebugInterface(&pCorDebugProcess)); + if (FAILED(Status = g_pRuntime->GetCorDebugInterface(&pCorDebugProcess))) + { + ExtOut("\n" SOSPrefix "clrstack -i is unsupported on this target.\nThe ICorDebug interface cannot be constructed.\n\n"); + return Status; + } ExtOut("\n\n\nDumping managed stack and managed variables using ICorDebug.\n"); ExtOut("=============================================================================\n"); -- 2.34.1