summaryrefslogtreecommitdiffstats
path: root/libunwindstack/include/unwindstack/RegsArm64.h
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-04-20 11:51:14 -0700
committerJosh Gao <jmgao@google.com>2018-04-20 13:23:20 -0700
commit2f37a15472945194fed528cb8d3104aa4865fc4c (patch)
tree01fde5f19a6c4c2833fc2bc39bd0ad268fc4811f /libunwindstack/include/unwindstack/RegsArm64.h
parent22dc27b9fa46b20aca4f5982979681a858a97284 (diff)
downloadsystem_core-2f37a15472945194fed528cb8d3104aa4865fc4c.tar.gz
system_core-2f37a15472945194fed528cb8d3104aa4865fc4c.tar.bz2
system_core-2f37a15472945194fed528cb8d3104aa4865fc4c.zip
libunwindstack: add Regs::Clone.
Add a way to copy a Regs object. Bug: http://b/77296294 Test: libunwindstack_test Change-Id: I28aff510aa3e1b677d5ae46dc3bfe7652817ce52
Diffstat (limited to 'libunwindstack/include/unwindstack/RegsArm64.h')
-rw-r--r--libunwindstack/include/unwindstack/RegsArm64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libunwindstack/include/unwindstack/RegsArm64.h b/libunwindstack/include/unwindstack/RegsArm64.h
index 0c45ebab8..a72f91ff2 100644
--- a/libunwindstack/include/unwindstack/RegsArm64.h
+++ b/libunwindstack/include/unwindstack/RegsArm64.h
@@ -50,6 +50,8 @@ class RegsArm64 : public RegsImpl<uint64_t> {
void set_pc(uint64_t pc) override;
void set_sp(uint64_t sp) override;
+ Regs* Clone() override final;
+
static Regs* Read(void* data);
static Regs* CreateFromUcontext(void* ucontext);