]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/backtrace.h
Drop copyright and license notices from source files
[libs/core.git] / source / debug / backtrace.h
index c570ce5d0746f0dd31106132f052ae8d2c715426..33ed8934eb1fd966b09664eb6cbe5c046eeeef8a 100644 (file)
@@ -1,9 +1,3 @@
-/* $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_
 
@@ -20,20 +14,21 @@ public:
        struct StackFrame
        {
                void *address;
+               std::string file;
                std::string symbol;
-
-               StackFrame(void *a, const std::string &s): address(a), symbol(s) { }
        };
-       typedef std::list<StackFrame> FrameSeq;
 
-       const FrameSeq &get_frames() const { return frames; }
+private:
+       std::list<StackFrame> frames;
+
+public:
+       const std::list<StackFrame> &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