X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fdebug%2Fbacktrace.h;fp=source%2Fdebug%2Fbacktrace.h;h=66e36f35cfa3637c8b52b497a9d84a4b47dce87d;hp=6ba3ad1b0d297a5b9ad9e705f2b1d6740a2f9e78;hb=cfc8e0b7b15ea505bd6a6a9599cbc5ce1e316963;hpb=7db1e6d50594b47a32ecca5a349a4e8540f890c0 diff --git a/source/debug/backtrace.h b/source/debug/backtrace.h index 6ba3ad1..66e36f3 100644 --- a/source/debug/backtrace.h +++ b/source/debug/backtrace.h @@ -4,6 +4,7 @@ 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_ @@ -22,16 +23,15 @@ 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::list frames; + +public: + const std::list &get_frames() const { return frames; } static Backtrace create(); -private: - FrameSeq frames; }; std::ostream &operator<<(std::ostream &, const Backtrace &);