3 This file is part of gldbg
4 Copyright © 2009-2011 Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
14 #include "commandinterpreter.h"
23 typedef std::list<Tool *> ToolList;
27 unsigned short function;
31 Breakpoint(unsigned short, unsigned char);
33 void add_owner(Tool *);
34 bool has_owner(Tool *) const;
35 void remove_owner(Tool *);
38 typedef std::list<Breakpoint> BreakList;
40 CommandInterpreter cmd_interp;
49 BreakList breakpoints;
50 const Breakpoint *current_break;
51 ToolList break_holders;
53 static GlDbg *instance;
60 CommandInterpreter &get_command_interpreter() { return cmd_interp; }
61 Process &get_process() { return process; }
63 void send(GlPacket *);
65 void set_breakpoint(unsigned short, unsigned char, Tool *);
66 void clear_breakpoint(unsigned short, unsigned char, Tool *);
67 void resume_from_break(Tool *);
73 Breakpoint *get_breakpoint(unsigned short, unsigned char);
75 static void sighandler(int);