diff options
author | Yabin Cui <yabinc@google.com> | 2016-03-30 16:21:47 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-03-30 16:21:47 -0700 |
commit | 257d5e69967941de7c5516a476397450063b8c3d (patch) | |
tree | 5729b8ffc4e002d9a75d5e56c49495dd0fd814b9 /simpleperf/dwarf_unwind.cpp | |
parent | 6dd31f4a3fda4dc6a49bcda1fb67052bc478c3fb (diff) | |
download | extras-257d5e69967941de7c5516a476397450063b8c3d.tar.gz |
simpleperf: don't allow 64bit simpleperf unwinding 32bit processes.
Bug: 27927427
Change-Id: I87abc7f8d1f160da4366ed04db054206403bc803
Diffstat (limited to 'simpleperf/dwarf_unwind.cpp')
-rw-r--r-- | simpleperf/dwarf_unwind.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/dwarf_unwind.cpp b/simpleperf/dwarf_unwind.cpp index ae2e1a1f..39bbef17 100644 --- a/simpleperf/dwarf_unwind.cpp +++ b/simpleperf/dwarf_unwind.cpp @@ -98,7 +98,8 @@ std::vector<uint64_t> UnwindCallChain(ArchType arch, const ThreadEntry& thread, const RegSet& regs, const std::vector<char>& stack) { std::vector<uint64_t> result; if (arch != GetBuildArch()) { - LOG(ERROR) << "can't unwind data recorded on a different architecture"; + LOG(FATAL) << "simpleperf is built in arch " << GetArchString(GetBuildArch()) + << ", and can't do stack unwinding for arch " << GetArchString(arch); return result; } uint64_t sp_reg_value; |