[x86/Linux][SOS] Get correct stack pointer from DT_CONTEXT (dotnet/coreclr#8500)
authorEvgeny Pavlov <lucenticus@gmail.com>
Wed, 7 Dec 2016 16:48:30 +0000 (19:48 +0300)
committerJan Kotas <jkotas@microsoft.com>
Wed, 7 Dec 2016 16:48:30 +0000 (08:48 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/ae3df538d3e36ee9d51a47ce6eb8d9c5c08a1008

src/coreclr/src/ToolBox/SOS/lldbplugin/services.cpp

index f6b4213..d2d2cf9 100644 (file)
@@ -167,6 +167,8 @@ LLDBServices::VirtualUnwind(
 
 #ifdef DBG_TARGET_AMD64
     DWORD64 spToFind = dtcontext->Rsp;
+#elif DBG_TARGET_X86
+    DWORD spToFind = dtcontext->Esp;
 #elif DBG_TARGET_ARM
     DWORD spToFind = dtcontext->Sp;
 #endif