diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-01-29 19:23:23 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-01-29 19:23:23 +0000 |
commit | 9f5e9978c2b58ebdcc3d253c6e04e31e5b90a0e4 (patch) | |
tree | 6bcb5d4012f236bc93dcee4591449c7fe6d7241b | |
parent | 2cbdc561ad1b3c1565af8e1a30faa17dc35e9271 (diff) | |
parent | 1c993b76bf00c8ee39335092ccf89c259cc5c9cd (diff) | |
download | system_core-9f5e9978c2b58ebdcc3d253c6e04e31e5b90a0e4.tar.gz system_core-9f5e9978c2b58ebdcc3d253c6e04e31e5b90a0e4.tar.bz2 system_core-9f5e9978c2b58ebdcc3d253c6e04e31e5b90a0e4.zip |
Merge "Allow to move frames out of Unwinder."
-rw-r--r-- | libunwindstack/include/unwindstack/Unwinder.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libunwindstack/include/unwindstack/Unwinder.h b/libunwindstack/include/unwindstack/Unwinder.h index f4788d71b..ddda7fd9f 100644 --- a/libunwindstack/include/unwindstack/Unwinder.h +++ b/libunwindstack/include/unwindstack/Unwinder.h @@ -81,6 +81,12 @@ class Unwinder { const std::vector<FrameData>& frames() { return frames_; } + std::vector<FrameData> ConsumeFrames() { + std::vector<FrameData> frames = std::move(frames_); + frames_.clear(); + return frames; + } + std::string FormatFrame(size_t frame_num); static std::string FormatFrame(const FrameData& frame, bool is32bit); |