ajout de console de debogage
This commit is contained in:
+12
-6
@@ -2,11 +2,18 @@
|
||||
#pragma once
|
||||
#include <sys/types.h>
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
class Breakpoint {
|
||||
private:
|
||||
pid_t m_pid;
|
||||
std::intptr_t m_addr;
|
||||
bool m_enabled = false;
|
||||
uint8_t m_saved_data;
|
||||
public:
|
||||
Breakpoint(pid_t pid, std::intptr_t addr);
|
||||
|
||||
Breakpoint(pid_t pid, std::intptr_t addr);
|
||||
void enable();
|
||||
void disable();
|
||||
|
||||
@@ -14,10 +21,9 @@ public:
|
||||
|
||||
bool is_enabled() const;
|
||||
|
||||
private:
|
||||
pid_t m_pid;
|
||||
std::intptr_t m_addr;
|
||||
bool m_enabled = false;
|
||||
uint8_t m_saved_data;
|
||||
friend std::ostream& operator<<(std::ostream& os, const Breakpoint& bp);
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user