diff options
author | Josh Gao <jmgao@google.com> | 2018-04-20 11:51:14 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2018-04-20 13:23:20 -0700 |
commit | 7cde76ea916a33ebe354070da0b0719e3971c8ab (patch) | |
tree | 47d95afc311d1d02020b3db4582bf7d7d9ab9e24 /libunwindstack/RegsX86.cpp | |
parent | a0b5a8de9ae31e8f0908848763990548eacd47ae (diff) | |
download | unwinding-7cde76ea916a33ebe354070da0b0719e3971c8ab.tar.gz |
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/RegsX86.cpp')
-rw-r--r-- | libunwindstack/RegsX86.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libunwindstack/RegsX86.cpp b/libunwindstack/RegsX86.cpp index f7e0614..9bb39d1 100644 --- a/libunwindstack/RegsX86.cpp +++ b/libunwindstack/RegsX86.cpp @@ -179,4 +179,8 @@ bool RegsX86::StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_mem return false; } +Regs* RegsX86::Clone() { + return new RegsX86(*this); +} + } // namespace unwindstack |