summaryrefslogtreecommitdiffstats
path: root/libunwindstack/include/unwindstack/RegsX86.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/RegsX86.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/RegsX86.h')
-rw-r--r--libunwindstack/include/unwindstack/RegsX86.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libunwindstack/include/unwindstack/RegsX86.h b/libunwindstack/include/unwindstack/RegsX86.h
index 586c9d85c..d19e4499b 100644
--- a/libunwindstack/include/unwindstack/RegsX86.h
+++ b/libunwindstack/include/unwindstack/RegsX86.h
@@ -53,6 +53,8 @@ class RegsX86 : public RegsImpl<uint32_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);