X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fdebug%2Fbacktrace.h;h=3f32ade0c4558478f633e93f02f9e9e29b261024;hp=9715df0ed8026c395af1cf1b865b1fc9b4ba4a64;hb=44da9fc9afb6b7e49c1558c5572213a1e6f401e8;hpb=55a79fbe96a87183fa4e11049eb161943636b1dd diff --git a/source/debug/backtrace.h b/source/debug/backtrace.h index 9715df0..3f32ade 100644 --- a/source/debug/backtrace.h +++ b/source/debug/backtrace.h @@ -1,15 +1,9 @@ -/* $Id$ - -This file is part of libmspcore -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ #ifndef MSP_DEBUG_BACKTRACE_H_ #define MSP_DEBUG_BACKTRACE_H_ -#include #include #include +#include namespace Msp { namespace Debug { @@ -22,19 +16,19 @@ public: void *address; std::string file; std::string symbol; - - //StackFrame(void *a, const std::string &s): address(a), symbol(s) { } }; - typedef std::list FrameSeq; - const FrameSeq &get_frames() const { return frames; } +private: + std::vector frames; + +public: + const std::vector &get_frames() const { return frames; } static Backtrace create(); -private: - FrameSeq frames; }; std::ostream &operator<<(std::ostream &, const Backtrace &); +std::ostream &operator<<(std::ostream &, const Backtrace::StackFrame &); } // namespace Debug } // namespace Msp