mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
linux: Fix build failure on ARM/MIPS
Add const to ProcessMemory pointers from ProcessReaderLinux::Memory(). This code is ifdef'd to only build on ARM/MIPS. Change-Id: I93983a83d06bd5bd338b93babdb326fa94925c53 Reviewed-on: https://chromium-review.googlesource.com/c/1341228 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Vlad Tsyrklevich <vtsyrklevich@chromium.org>
This commit is contained in:
parent
f42a579b8c
commit
083fd52cc3
@ -126,7 +126,7 @@ bool ExceptionSnapshotLinux::ReadContext<ContextTraits32>(
|
||||
context_.arm = &context_union_.arm;
|
||||
|
||||
CPUContextARM* dest_context = context_.arm;
|
||||
ProcessMemory* memory = reader->Memory();
|
||||
const ProcessMemory* memory = reader->Memory();
|
||||
|
||||
LinuxVMAddress gprs_address =
|
||||
context_address + offsetof(UContext<ContextTraits32>, mcontext32) +
|
||||
@ -203,7 +203,7 @@ bool ExceptionSnapshotLinux::ReadContext<ContextTraits64>(
|
||||
context_.arm64 = &context_union_.arm64;
|
||||
|
||||
CPUContextARM64* dest_context = context_.arm64;
|
||||
ProcessMemory* memory = reader->Memory();
|
||||
const ProcessMemory* memory = reader->Memory();
|
||||
|
||||
LinuxVMAddress gprs_address =
|
||||
context_address + offsetof(UContext<ContextTraits64>, mcontext64) +
|
||||
@ -274,7 +274,7 @@ template <typename Traits>
|
||||
static bool ReadContext(ProcessReaderLinux* reader,
|
||||
LinuxVMAddress context_address,
|
||||
typename Traits::CPUContext* dest_context) {
|
||||
ProcessMemory* memory = reader->Memory();
|
||||
const ProcessMemory* memory = reader->Memory();
|
||||
|
||||
LinuxVMAddress gregs_address = context_address +
|
||||
offsetof(UContext<Traits>, mcontext) +
|
||||
|
Loading…
x
Reference in New Issue
Block a user