X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgldbg.h;h=3a2bcd1a718535fdba44b00f6d2018f423df74a3;hb=e6f542d42b566193f55bb6727834f709ac6c1762;hp=99f0863c2c3f72cf91852ea0e356781aed23994c;hpb=6d297b506314c07bff3d77c2853a5f59380cfcb0;p=gldbg.git diff --git a/source/gldbg.h b/source/gldbg.h index 99f0863..3a2bcd1 100644 --- a/source/gldbg.h +++ b/source/gldbg.h @@ -1,24 +1,16 @@ -/* $Id$ - -This file is part of gldbg -Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions -Distributed under the GPL -*/ - #ifndef GLDBG_H_ #define GLDBG_H_ +#include #include #include -#include -#include #include "commandinterpreter.h" #include "packet.h" #include "process.h" class Tool; -class GlDbg: public Msp::Application +class GlDbg { private: typedef std::list ToolList; @@ -51,7 +43,7 @@ private: const Breakpoint *current_break; ToolList break_holders; - static RegApp reg; + static GlDbg *instance; public: GlDbg(int, char **); @@ -63,6 +55,9 @@ public: void launch(); void send(GlPacket *); void hold(); +private: + void send_breakpoint(unsigned short, unsigned char, unsigned char); +public: void set_breakpoint(unsigned short, unsigned char, Tool *); void clear_breakpoint(unsigned short, unsigned char, Tool *); void resume_from_break(Tool *); @@ -72,7 +67,8 @@ private: void check_child(); void read_stream(); Breakpoint *get_breakpoint(unsigned short, unsigned char); - virtual void sighandler(int); + + static void sighandler(int); }; #endif