summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/RegsTest.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2017-08-25 13:55:06 -0700
committerJosh Gao <jmgao@google.com>2017-08-25 14:48:09 -0700
commit0953ecd03a90350117d6881c55959c6644972b79 (patch)
tree5bfbfde939a83d68e8769f58eefda0c4f3d61380 /libunwindstack/tests/RegsTest.cpp
parent46244a6497ac6b0b1a589e40a67d0f99f462ba1e (diff)
libunwindstack: make machine type a property of Regs.
There are no actual users of the machine type output parameter to Regs::RemoteGet. The concrete implementations of Regs know what machine type they represent anyway, so provide an accessor to query. Test: treehugger Test: libunwindstack tests on 32/64-bit host, hikey960 Change-Id: Ia25910531d36c41b2b6919f154cfa914aae63117
Diffstat (limited to 'libunwindstack/tests/RegsTest.cpp')
-rw-r--r--libunwindstack/tests/RegsTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libunwindstack/tests/RegsTest.cpp b/libunwindstack/tests/RegsTest.cpp
index e6de56aa3..f549a50d6 100644
--- a/libunwindstack/tests/RegsTest.cpp
+++ b/libunwindstack/tests/RegsTest.cpp
@@ -58,6 +58,8 @@ class RegsTestImpl : public RegsImpl<TypeParam> {
: RegsImpl<TypeParam>(total_regs, regs_sp, return_loc) {}
virtual ~RegsTestImpl() = default;
+ uint32_t MachineType() override { return 0; }
+
uint64_t GetAdjustedPc(uint64_t, Elf*) override { return 0; }
void SetFromRaw() override {}
bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; }