]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.h
Remove dependencies to MSP libraries to make compiling on embedded platforms easier
[gldbg.git] / source / gldbg.h
index 99f0863c2c3f72cf91852ea0e356781aed23994c..dd6d60c6d8f1a97c13078d6da3fe51e82498228a 100644 (file)
@@ -1,24 +1,23 @@
 /* $Id$
 
 This file is part of gldbg
-Copyright © 2009-2010  Mikko Rasa, Mikkosoft Productions
+Copyright © 2009-2011  Mikko Rasa, Mikkosoft Productions
 Distributed under the GPL
 */
 
 #ifndef GLDBG_H_
 #define GLDBG_H_
 
+#include <list>
 #include <string>
 #include <vector>
-#include <msp/core/application.h>
-#include <msp/fs/path.h>
 #include "commandinterpreter.h"
 #include "packet.h"
 #include "process.h"
 
 class Tool;
 
-class GlDbg: public Msp::Application
+class GlDbg
 {
 private:
        typedef std::list<Tool *> ToolList;
@@ -51,7 +50,7 @@ private:
        const Breakpoint *current_break;
        ToolList break_holders;
 
-       static RegApp<GlDbg> reg;
+       static GlDbg *instance;
 
 public:
        GlDbg(int, char **);
@@ -72,7 +71,8 @@ private:
        void check_child();
        void read_stream();
        Breakpoint *get_breakpoint(unsigned short, unsigned char);
-       virtual void sighandler(int);
+
+       static void sighandler(int);
 };
 
 #endif