More debugger work.

Posix only right now.
This commit is contained in:
Ben Vanik
2013-02-03 00:29:40 -08:00
parent 02696f8dc4
commit 4f9e6b0547
16 changed files with 173 additions and 131 deletions

View File

@@ -22,20 +22,17 @@ namespace dbg {
class ContentSource {
public:
enum Type {
kTypeIndexed,
};
ContentSource(Type type);
ContentSource(Debugger* debugger, uint32_t source_id);
virtual ~ContentSource();
Type type();
uint32_t source_id();
virtual int DispatchRequest(Client* client,
const uint8_t* data, size_t length) = 0;
virtual int Dispatch(Client* client, uint8_t type, uint32_t request_id,
const uint8_t* data, size_t length) = 0;
protected:
Type type_;
Debugger* debugger_;
uint32_t source_id_;
};