3 This file is part of gldbg
4 Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
13 #include <msp/core/application.h>
14 #include <msp/fs/path.h>
15 #include "commandinterpreter.h"
21 class GlDbg: public Msp::Application
24 typedef std::list<Tool *> ToolList;
28 unsigned short function;
32 Breakpoint(unsigned short, unsigned char);
34 void add_owner(Tool *);
35 bool has_owner(Tool *) const;
36 void remove_owner(Tool *);
39 typedef std::list<Breakpoint> BreakList;
41 CommandInterpreter cmd_interp;
50 BreakList breakpoints;
51 const Breakpoint *current_break;
52 ToolList break_holders;
54 static RegApp<GlDbg> reg;
61 CommandInterpreter &get_command_interpreter() { return cmd_interp; }
62 Process &get_process() { return process; }
64 void send(GlPacket *);
66 void set_breakpoint(unsigned short, unsigned char, Tool *);
67 void clear_breakpoint(unsigned short, unsigned char, Tool *);
68 void resume_from_break(Tool *);
74 Breakpoint *get_breakpoint(unsigned short, unsigned char);
75 virtual void sighandler(int);