[x86/Linux] Fix SIGSEGV on Debugger.Break() during debugging.
[platform/upstream/coreclr.git] / src / debug / ee / frameinfo.cpp
index 3efbddd..a4741df 100644 (file)
@@ -2097,7 +2097,7 @@ StackWalkAction DebuggerWalkStack(Thread *thread,
 #endif
             memset((void *)&data, 0, sizeof(data));
 
-#if defined(_TARGET_X86_)
+#if !defined(WIN64EXCEPTIONS)
             // @todo - this seems pointless. context->Eip will be 0; and when we copy it over to the DebuggerRD,
             // the context will be completely null.
             data.regDisplay.ControlPC = context->Eip;