]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.h
Decouple the existing tools from the debugger core
[gldbg.git] / source / gldbg.h
index 543df05a580265b5d88e395f995ffb2b2a0f0438..d8b56f825e2c92b0135f16e4bfd2b3db0f67fca7 100644 (file)
@@ -13,10 +13,7 @@ Distributed under the GPL
 #include <msp/core/application.h>
 #include <msp/fs/path.h>
 #include "commandinterpreter.h"
-#include "glstate.h"
 #include "process.h"
-#include "profiler.h"
-#include "tracer.h"
 
 class Tool;
 
@@ -30,20 +27,16 @@ private:
        unsigned buf_offset;
        bool flushing;
        std::list<Tool *> tools;
-       Tracer tracer;
-       GlState glstate;
-       Profiler profiler;
        bool got_sigchld;
 
        static RegApp<GlDbg> reg;
 
 public:
        GlDbg(int, char **);
+       ~GlDbg();
+
        int main();
        CommandInterpreter &get_command_interpreter() { return cmd_interp; }
-       Tracer &get_tracer() { return tracer; }
-       GlState &get_glstate() { return glstate; }
-       Profiler &get_profiler() { return profiler; }
        Process &get_process() { return process; }
        void launch();
        void quit(bool);