summaryrefslogtreecommitdiffhomepage
path: root/dev/LibDebugger
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-04 06:41:30 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-04 06:41:30 +0100
commit4017e6408c162b0ab1b54a0427d443b56df5237e (patch)
tree04d628712db204b984072e0bf5a5b6a10686e820 /dev/LibDebugger
parenta9d9538f9f5b6fedbf69086d66ad5452d7f67129 (diff)
ADD: C++ compiler improvements.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibDebugger')
-rw-r--r--dev/LibDebugger/IDebuggerEngine.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/LibDebugger/IDebuggerEngine.h b/dev/LibDebugger/IDebuggerEngine.h
index aefe117..ad35dfe 100644
--- a/dev/LibDebugger/IDebuggerEngine.h
+++ b/dev/LibDebugger/IDebuggerEngine.h
@@ -58,7 +58,7 @@ namespace LibDebugger
void SetBreakpoint(CAddr addr)
{
- auto original_data = ptrace(PTRACE_PEEKTEXT, m_pid, addr, 0);
+ uintptr_t original_data = ptrace(PTRACE_PEEKTEXT, m_pid, addr, 0);
if (original_data == -1)
{
@@ -66,7 +66,7 @@ namespace LibDebugger
return;
}
- auto data_with_int3 = (original_data & ~0xFF) | 0xCC; // Insert INT3 (0xCC)
+ uintptr_t data_with_int3 = (original_data & ~0xFF) | 0xCC; // Insert INT3 (0xCC)
if (ptrace(PTRACE_POKETEXT, m_pid, addr, data_with_int3) == -1)
{
@@ -107,13 +107,13 @@ namespace LibDebugger
std::cout << "[-] Detached from process: " << m_pid << std::endl;
}
- std::unordered_map<uintptr_t, long>& Breakpoints()
+ std::unordered_map<uintptr_t, uintptr_t>& Breakpoints()
{
return m_breakpoints;
}
private:
pid_t m_pid;
- std::unordered_map<uintptr_t, long> m_breakpoints;
+ std::unordered_map<uintptr_t, uintptr_t> m_breakpoints;
};
} // namespace LibDebugger