-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RISC-V] Fixing createdump for RISC-V #93374
Conversation
Tagging subscribers to this area: @tommcdon Issue DetailsFixing errors to make dumps in RISC-V. Part of #84834
|
cc @viewizard |
@jkotas Could you take a look at this PR? Thank you. |
#ifndef HOST_WINDOWS | ||
// In windows, IMAGE_FILE_MACHINE_RISCV64 is not declared yet. | ||
case IMAGE_FILE_MACHINE_RISCV64: | ||
ulExpectedPointerSize = 8; | ||
platform = CORDB_PLATFORM_POSIX_RISCV64; | ||
break; | ||
#endif // HOST_WINDOWS | ||
|
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.
#ifndef HOST_WINDOWS | |
// In windows, IMAGE_FILE_MACHINE_RISCV64 is not declared yet. | |
case IMAGE_FILE_MACHINE_RISCV64: | |
ulExpectedPointerSize = 8; | |
platform = CORDB_PLATFORM_POSIX_RISCV64; | |
break; | |
#endif // HOST_WINDOWS | |
case IMAGE_FILE_MACHINE_RISCV64: | |
ulExpectedPointerSize = 8; | |
platform = CORDB_PLATFORM_POSIX_RISCV64; | |
break; | |
And instead add the following somewhere (src/coreclr/inc/clrint.h may be a good place):
#ifndef IMAGE_FILE_MACHINE_RISCV64
#define IMAGE_FILE_MACHINE_RISCV64 0x5064 // RISCV64
#endif
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!
2a03159
to
a4d98aa
Compare
Thank you! |
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
Initial patch for createdump. Fixed errors when to make dumps in RISC-V only.
I didn't check generated dump is correct yet. I will check later when others are prepared.
Part of #84834
cc @wscho77 @HJLeee @JongHeonChoi @t-mustafin @gbalykov @tomeksowi @sirntar @yurai007