-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebuggermanager.h
37 lines (28 loc) · 996 Bytes
/
debuggermanager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef DebuggerManager_H
#define DebuggerManager_H
#include "LtDbg/LtDbg/Dbg.hpp"
#include "LtDbg/LtDbg/Response.hpp"
#include "cmdwidget.hpp"
#include "stacktracewidget.h"
#include "asmwidget.h"
class DebuggerManager
{
public:
static DebuggerManager * Instance();
void Initialize(Dbg * const dbg, CmdWidget * const cmdWidget, StackTraceWidget * const stackTraceWidget, AsmWidget * const asmWidget);
void ConnectToDebugger(const std::string pipename);
void ExecuteCommand(const std::string input, KeDebugContext * context = nullptr);
void LoadSymbols(std::vector<std::string> & symbolsPaths);
DbgResponsePtr lastResponse;
private:
DebuggerManager();
void RetrieveDisassembly();
void RetrieveStacktrace();
static DebuggerManager * _instance;
Dbg * _dbg;
CmdWidget * _cmdWidget;
StackTraceWidget * _stackTraceWidget;
AsmWidget * _asmWidget;
bool _initialized;
};
#endif // DebuggerManager_H