X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcommandinterpreter.h;h=ca5060b4d50f42e4757cadc0f40cf12d5a49f5ad;hb=a34325fadec5b2be003bf9af1f081bfc4c83e8b6;hp=63245227844d0351c41959d26022d225787cb138;hpb=7bd7fc784a6f6cff69f79914a445bc2115a7e768;p=gldbg.git diff --git a/source/commandinterpreter.h b/source/commandinterpreter.h index 6324522..ca5060b 100644 --- a/source/commandinterpreter.h +++ b/source/commandinterpreter.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of gldbg -Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions -Distributed under the GPL -*/ - #ifndef COMMANDINTERPRETER_H_ #define COMMANDINTERPRETER_H_ @@ -24,8 +17,9 @@ public: protected: Command() { } - public: + virtual ~Command() { } + void set_help(const std::string &); void set_help(const std::string &, const std::string &); const std::string &get_description() const { return description; } @@ -70,6 +64,7 @@ private: public: CommandInterpreter(GlDbg &); + ~CommandInterpreter(); template Command ®ister_command(const std::string &n, T *o, void (T::*f)(const std::string &)) @@ -80,6 +75,10 @@ public: private: void cmd_help(const std::string &); void cmd_run(const std::string &); + void cmd_break(const std::string &); + void cmd_unbreak(const std::string &); + void cmd_next(const std::string &); + void cmd_finish(const std::string &); void cmd_continue(const std::string &); void cmd_signal(const std::string &); void cmd_kill(const std::string &);