diff options
Diffstat (limited to 'src/google_airbag/processor/call_stack.h')
-rw-r--r-- | src/google_airbag/processor/call_stack.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/google_airbag/processor/call_stack.h b/src/google_airbag/processor/call_stack.h index 580d4927..d938944e 100644 --- a/src/google_airbag/processor/call_stack.h +++ b/src/google_airbag/processor/call_stack.h @@ -56,17 +56,18 @@ template<typename T> class linked_ptr; class CallStack { public: + CallStack() { Clear(); } ~CallStack(); + // Resets the CallStack to its initial empty state + void Clear(); + const vector<StackFrame*>* frames() const { return &frames_; } private: // Stackwalker is responsible for building the frames_ vector. friend class Stackwalker; - // Disallow instantiation other than by friends. - CallStack() : frames_() {} - // Storage for pushed frames. vector<StackFrame*> frames_; }; |