From 2f37a15472945194fed528cb8d3104aa4865fc4c Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Fri, 20 Apr 2018 11:51:14 -0700 Subject: libunwindstack: add Regs::Clone. Add a way to copy a Regs object. Bug: http://b/77296294 Test: libunwindstack_test Change-Id: I28aff510aa3e1b677d5ae46dc3bfe7652817ce52 --- libunwindstack/RegsX86_64.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libunwindstack/RegsX86_64.cpp') diff --git a/libunwindstack/RegsX86_64.cpp b/libunwindstack/RegsX86_64.cpp index 7d6ad86cf..ebad3f421 100644 --- a/libunwindstack/RegsX86_64.cpp +++ b/libunwindstack/RegsX86_64.cpp @@ -168,4 +168,8 @@ bool RegsX86_64::StepIfSignalHandler(uint64_t rel_pc, Elf* elf, Memory* process_ return true; } +Regs* RegsX86_64::Clone() { + return new RegsX86_64(*this); +} + } // namespace unwindstack -- cgit v1.2.3