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:
parent
50fd2cabff
commit
3e9a7175d1
10 changed files with 473 additions and 166 deletions
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = Debugee
|
||||
|
||||
# LIB_DEPS = Core
|
||||
|
||||
include ../../Makefile.common
|
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue