X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgldbg.h;h=da5664eddf749102f4a996bdab12e14f35983fdc;hb=ea3d851aa52e999b1c5a5fa52c97ff5019756c0e;hp=5f75164539153b06554bd41fcae0528b6f639b88;hpb=c6b2f7585d51164dc32f4dd2a05855913e464c58;p=gldbg.git diff --git a/source/gldbg.h b/source/gldbg.h index 5f75164..da5664e 100644 --- a/source/gldbg.h +++ b/source/gldbg.h @@ -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 #include "commandinterpreter.h" #include "process.h" -#include "tracer.h" + +class Tool; class GlDbg: public Msp::Application { @@ -25,23 +26,26 @@ private: std::string buffer; unsigned buf_offset; bool flushing; - Tracer tracer; + std::list tools; bool got_sigchld; static RegApp 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 set_breakpoint(unsigned short, char); + void clear_breakpoint(unsigned short, char); + void quit(bool); private: void tick(); void check_child(); void read_stream(); - long ptrace(int, void *, void *); virtual void sighandler(int); };