]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.h
Decouple the existing tools from the debugger core
[gldbg.git] / source / gldbg.h
index 5f75164539153b06554bd41fcae0528b6f639b88..d8b56f825e2c92b0135f16e4bfd2b3db0f67fca7 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
 */
 
@@ -14,7 +14,8 @@ Distributed under the GPL
 #include <msp/fs/path.h>
 #include "commandinterpreter.h"
 #include "process.h"
-#include "tracer.h"
+
+class Tool;
 
 class GlDbg: public Msp::Application
 {
@@ -25,18 +26,20 @@ private:
        std::string buffer;
        unsigned buf_offset;
        bool flushing;
-       Tracer tracer;
+       std::list<Tool *> tools;
        bool got_sigchld;
 
        static RegApp<GlDbg> reg;
 
 public:
        GlDbg(int, char **);
+       ~GlDbg();
+
        int main();
-       Tracer &get_tracer() { return tracer; }
+       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();