-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[x86/Linux] Fix unsupported architecture in seh-unwind.cpp #8262
Conversation
I don't know much about unwind so please guide me if anything needs to be fixed in this patch. |
@@ -196,6 +212,9 @@ static void GetContextPointers(unw_cursor_t *cursor, unw_context_t *unwContext, | |||
GetContextPointer(cursor, unwContext, UNW_X86_64_R13, &contextPointers->R13); | |||
GetContextPointer(cursor, unwContext, UNW_X86_64_R14, &contextPointers->R14); | |||
GetContextPointer(cursor, unwContext, UNW_X86_64_R15, &contextPointers->R15); | |||
#elif defined(_X86_) | |||
GetContextPointer(cursor, unwContext, UNW_X86_EBP, &contextPointers->Ebp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the Esi and Edi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thank you :)
@@ -122,6 +128,11 @@ static void WinContextToUnwindCursor(CONTEXT *winContext, unw_cursor_t *cursor) | |||
unw_set_reg(cursor, UNW_X86_64_R13, winContext->R13); | |||
unw_set_reg(cursor, UNW_X86_64_R14, winContext->R14); | |||
unw_set_reg(cursor, UNW_X86_64_R15, winContext->R15); | |||
#elif defined(_X86_) | |||
unw_set_reg(cursor, UNW_REG_IP, winContext->Eip); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sorry I have not noticed this before, but we need the Rsi and Rdi here as well (and the same in the UnwindContextToWinContext below)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you :) It's OK to change again. This is a huge place.
Fix compile error for x86/Linux - add ASSIGN_UNWIND_REGS in seh-unwind.cpp for x86 - add CONTEXT_EXCEPTION_ACTIVE in pal.h for x86 - add CONTEXT_XSTATE in pal.h for x86
Done adding |
@dotnet-bot test Windows_NT x86 compatjit Checked Build and Test please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
…reclr#8262) Fix compile error for x86/Linux - add ASSIGN_UNWIND_REGS in seh-unwind.cpp for x86 - add CONTEXT_EXCEPTION_ACTIVE in pal.h for x86 - add CONTEXT_XSTATE in pal.h for x86 Commit migrated from dotnet/coreclr@f85bf7c
Fix compile error for x86/Linux