2018-02-18 01:44:04 +00:00
|
|
|
#ifndef __DEBUGGER_H
|
|
|
|
#define __DEBUGGER_H
|
|
|
|
|
|
|
|
#include <pthread.h>
|
2018-06-16 15:41:18 +00:00
|
|
|
#include <inttypes.h>
|
2018-02-18 01:44:04 +00:00
|
|
|
|
|
|
|
class Debugger {
|
|
|
|
public:
|
|
|
|
Debugger();
|
|
|
|
~Debugger();
|
|
|
|
|
|
|
|
void setSocket(int cliSock);
|
|
|
|
void step();
|
2018-06-16 15:41:18 +00:00
|
|
|
bool active();
|
2018-02-18 01:44:04 +00:00
|
|
|
|
|
|
|
// private:
|
|
|
|
int sd; // server (listener)
|
|
|
|
int cd; // client (connected to us)
|
|
|
|
pthread_t listenThreadID;
|
|
|
|
|
2018-06-16 15:41:18 +00:00
|
|
|
uint32_t breakpoint;
|
2021-01-11 04:52:58 +00:00
|
|
|
bool steppingOut;
|
|
|
|
bool singleStep;
|
2018-02-18 01:44:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|