X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgldbg.h;h=ff844518ed68f715e0e3a5036be9b7d4ab95716c;hb=c0ba680779ab15fe46442765fb7cf136aadfda65;hp=9f26de3f34e872485c5129c0e827f1b69c85d896;hpb=8a1580721a939c3edea2ce1b342148e94ad2b814;p=gldbg.git diff --git a/source/gldbg.h b/source/gldbg.h index 9f26de3..ff84451 100644 --- a/source/gldbg.h +++ b/source/gldbg.h @@ -12,27 +12,40 @@ Distributed under the GPL #include #include #include +#include "commandinterpreter.h" #include "glstate.h" +#include "process.h" +#include "tracer.h" class GlDbg: public Msp::Application { private: - Msp::FS::Path libdir; - int pid; - std::vector args; + CommandInterpreter cmd_interp; + Process process; int sock_fd; std::string buffer; unsigned buf_offset; - GlDecoder *glprint; + bool flushing; + Tracer tracer; + GlState glstate; + bool got_sigchld; static RegApp reg; public: GlDbg(int, char **); int main(); + Tracer &get_tracer() { return tracer; } + GlState &get_glstate() { return glstate; } + Process &get_process() { return process; } + void launch(); + void quit(); private: void tick(); - void launch(); + void check_child(); + void read_stream(); + long ptrace(int, void *, void *); + virtual void sighandler(int); }; #endif