ajout de console de debogage
This commit is contained in:
+10
-1
@@ -2,17 +2,26 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <sys/types.h>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include "Breakpoint.hpp"
|
||||
|
||||
class Debugger {
|
||||
public:
|
||||
Debugger(const std::string& prog_name);
|
||||
~Debugger() {std::cout << "Debugger destroyed." << std::endl;}
|
||||
void breakpoint_list();
|
||||
void set_breakpoint(pid_t pid, std::intptr_t addr);
|
||||
void remove_breakpoint(pid_t pid, std::intptr_t addr);
|
||||
void run();
|
||||
void DEBUGING(void);
|
||||
|
||||
private:
|
||||
void run_target();
|
||||
void run_debugger();
|
||||
|
||||
|
||||
std::string program_name;
|
||||
pid_t child_pid;
|
||||
std::vector<Breakpoint> breakpoints;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user