mirror of
https://github.com/intel/llvm.git
synced 2026-01-28 09:37:03 +08:00
Fix MinidumpParserTest on 32-bit arches
load_size should be 64-bit unconditionally to match the underlying API. This makes sure the MAX value correctly signals to auto-detect the file size when mmap()ing. llvm-svn: 296334
This commit is contained in:
@@ -48,7 +48,8 @@ public:
|
||||
llvm::sys::path::append(inputs_folder, "Inputs");
|
||||
}
|
||||
|
||||
void SetUpData(const char *minidump_filename, size_t load_size = SIZE_MAX) {
|
||||
void SetUpData(const char *minidump_filename,
|
||||
uint64_t load_size = UINT64_MAX) {
|
||||
llvm::SmallString<128> filename = inputs_folder;
|
||||
llvm::sys::path::append(filename, minidump_filename);
|
||||
|
||||
@@ -452,4 +453,4 @@ TEST_F(MinidumpParserTest, ConvertMinidumpContext_x86_32_wow64) {
|
||||
REG_VAL32(buf->GetBytes() + reg_info[reg_index].byte_offset));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user