1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 02:17:34 +00:00

Debugger: Add DebugSession

The DebugSession class wraps the usage of Ptrace.
It is intended to be used by cli & gui debugger programs.

Also, call objdump for disassemly
This commit is contained in:
Itamar 2020-04-10 17:35:49 +03:00 committed by Andreas Kling
parent 50fd2cabff
commit 3e9a7175d1
10 changed files with 473 additions and 166 deletions

View file

@ -1,8 +0,0 @@
OBJS = \
main.o
PROGRAM = Debugee
# LIB_DEPS = Core
include ../../Makefile.common

View file

@ -1,12 +0,0 @@
#include <cstdio>
int main(int, char**)
{
printf("Debuggee main\n");
int s = 0;
for (int i = 0; i < 10; ++i) {
s++;
}
printf("s: %d\n", s);
// asm("int3");
return 0;
}