From 5c521532fc0a1b65f42c0d61d2da206eadf318b8 Mon Sep 17 00:00:00 2001 From: Roman Margold Date: Wed, 1 Feb 2017 08:33:44 -0800 Subject: Several fixes for broken Mac build --- src/processor/minidump.cc | 2 +- src/processor/stackwalker_mips.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/processor') diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc index c9fa4d81..439bb45f 100644 --- a/src/processor/minidump.cc +++ b/src/processor/minidump.cc @@ -3885,7 +3885,7 @@ const CodeModules* MinidumpUnloadedModuleList::Copy() const { return new BasicCodeModules(this); } -vector> +vector > MinidumpUnloadedModuleList::GetShrunkRangeModules() const { return vector >(); } diff --git a/src/processor/stackwalker_mips.cc b/src/processor/stackwalker_mips.cc index db55d460..65b7c35a 100644 --- a/src/processor/stackwalker_mips.cc +++ b/src/processor/stackwalker_mips.cc @@ -56,8 +56,8 @@ StackwalkerMIPS::StackwalkerMIPS(const SystemInfo* system_info, : Stackwalker(system_info, memory, modules, resolver_helper), context_(context) { if (context_->context_flags & MD_CONTEXT_MIPS64 ) { - if ((memory_ && memory_->GetBase() + memory_->GetSize() - 1) - > 0xffffffffffffffff) { + if (memory_ && ((memory_->GetBase() + memory_->GetSize() - 1) + > 0xffffffffffffffff)) { BPLOG(ERROR) << "Memory out of range for stackwalking mips64: " << HexString(memory_->GetBase()) << "+" @@ -65,7 +65,7 @@ StackwalkerMIPS::StackwalkerMIPS(const SystemInfo* system_info, memory_ = NULL; } } else { - if ((memory_ && memory_->GetBase() + memory_->GetSize() - 1) > 0xffffffff) { + if (memory_ && ((memory_->GetBase() + memory_->GetSize() - 1) > 0xffffffff)) { BPLOG(ERROR) << "Memory out of range for stackwalking mips32: " << HexString(memory_->GetBase()) << "+" -- cgit v1.2.1