X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Fbacktrace.h;h=67cf62fc9c70a8c5a3cefd4f125b5a35cc39d2da;hb=122846f0881673770d88eff7d925ecf25c01b62e;hp=6ba3ad1b0d297a5b9ad9e705f2b1d6740a2f9e78;hpb=bddffe4de070f28bcc1def8bfc5f86dc385aa81f;p=libs%2Fcore.git diff --git a/source/debug/backtrace.h b/source/debug/backtrace.h index 6ba3ad1..67cf62f 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 { @@ -19,19 +13,18 @@ class Backtrace public: struct StackFrame { - void *address; + void *address = 0; 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 &);