btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / debugger / model / StackTrace.h
blob9874eec2cf095d5905c59c52578b7e8fca926b12
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef STACK_TRACE_H
6 #define STACK_TRACE_H
8 #include <ObjectList.h>
10 #include "StackFrame.h"
13 class StackTrace : public BReferenceable {
14 public:
15 StackTrace();
16 virtual ~StackTrace();
18 bool AddFrame(StackFrame* frame);
19 // takes over reference (also on error)
21 int32 CountFrames() const;
22 StackFrame* FrameAt(int32 index) const;
24 private:
25 typedef BObjectList<StackFrame> StackFrameList;
27 private:
28 StackFrameList fStackFrames;
32 #endif // STACK_TRACE_H