mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-23 06:06:24 +01:00
Fix Mac build
https://chromium.googlesource.com/breakpad/breakpad/+/f6178140175800cc6385a151e7f23d6e5c4968ca missed marking `IsCanonicalAddress` Linux-only. Bug: None Change-Id: Ia936db4b5541f22abcc884d410e7eae3818b4c0f Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4227418 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
bc25ffb613
commit
5687ac51ca
1 changed files with 2 additions and 1 deletions
|
|
@ -763,6 +763,8 @@ bool MinidumpProcessor::GetProcessCreateTime(Minidump* dump,
|
|||
return true;
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
static bool IsCanonicalAddress(uint64_t address) {
|
||||
uint64_t sign_bit = (address >> 63) & 1;
|
||||
for (int shift = 48; shift < 63; ++shift) {
|
||||
|
|
@ -773,7 +775,6 @@ static bool IsCanonicalAddress(uint64_t address) {
|
|||
return true;
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
static void CalculateFaultAddressFromInstruction(Minidump* dump,
|
||||
uint64_t* address) {
|
||||
MinidumpException* exception = dump->GetException();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue