X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=source%2Fgldbg.h;fp=source%2Fgldbg.h;h=dd6d60c6d8f1a97c13078d6da3fe51e82498228a;hp=99f0863c2c3f72cf91852ea0e356781aed23994c;hb=81f1ddee977603293d0c5710f2db69130dac6a96;hpb=a51c2557622ea93944e24f58845609526eb46ec1 diff --git a/source/gldbg.h b/source/gldbg.h index 99f0863..dd6d60c 100644 --- a/source/gldbg.h +++ b/source/gldbg.h @@ -1,24 +1,23 @@ /* $Id$ This file is part of gldbg -Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions +Copyright © 2009-2011 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 +50,7 @@ private: const Breakpoint *current_break; ToolList break_holders; - static RegApp reg; + static GlDbg *instance; public: GlDbg(int, char **); @@ -72,7 +71,8 @@ private: void check_child(); void read_stream(); Breakpoint *get_breakpoint(unsigned short, unsigned char); - virtual void sighandler(int); + + static void sighandler(int); }; #endif