]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.h
Make tmpalloc global variables static
[gldbg.git] / source / gldbg.h
index ff844518ed68f715e0e3a5036be9b7d4ab95716c..e53998251e3821bef667526e5346de0717741a22 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of gldbg
-Copyright © 2009  Mikko Rasa, Mikkosoft Productions
+Copyright © 2009-2010  Mikko Rasa, Mikkosoft Productions
 Distributed under the GPL
 */
 
@@ -13,9 +13,9 @@ Distributed under the GPL
 #include <msp/core/application.h>
 #include <msp/fs/path.h>
 #include "commandinterpreter.h"
-#include "glstate.h"
 #include "process.h"
-#include "tracer.h"
+
+class Tool;
 
 class GlDbg: public Msp::Application
 {
@@ -26,25 +26,24 @@ private:
        std::string buffer;
        unsigned buf_offset;
        bool flushing;
-       Tracer tracer;
-       GlState glstate;
+       std::list<Tool *> tools;
        bool got_sigchld;
 
        static RegApp<GlDbg> reg;
 
 public:
        GlDbg(int, char **);
+       ~GlDbg();
+
        int main();
-       Tracer &get_tracer() { return tracer; }
-       GlState &get_glstate() { return glstate; }
+       CommandInterpreter &get_command_interpreter() { return cmd_interp; }
        Process &get_process() { return process; }
        void launch();
-       void quit();
+       void quit(bool);
 private:
        void tick();
        void check_child();
        void read_stream();
-       long ptrace(int, void *, void *);
        virtual void sighandler(int);
 };