X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgldbg.h;h=5654715c41845ffca052bbef67f936b86846ec68;hb=2f49929fc383eab718b5fb64d966535b753e7024;hp=fce7d7fa2fd4790f4fa96439690a8ce34875d945;hpb=8b398bfe13b0884191b1fac56f274d395fd9d4dd;p=gldbg.git diff --git a/source/gldbg.h b/source/gldbg.h index fce7d7f..5654715 100644 --- a/source/gldbg.h +++ b/source/gldbg.h @@ -12,27 +12,40 @@ Distributed under the GPL #include #include #include -#include "gldecoder.h" +#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(bool); private: void tick(); - void launch(); + void check_child(); + void read_stream(); + long ptrace(int, void *, void *); + virtual void sighandler(int); }; #endif