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

CPU: Handle breakpoint trap

Also, start working on the debugger app.
This commit is contained in:
Itamar 2020-04-03 14:50:17 +03:00 committed by Andreas Kling
parent c112f53357
commit 77f671b462
10 changed files with 184 additions and 23 deletions

8
Demos/Debugee/Makefile Normal file
View file

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

8
Demos/Debugee/main.cpp Normal file
View file

@ -0,0 +1,8 @@
#include <cstdio>
int main(int, char**)
{
printf("before breakpoint\n");
asm("int3");
printf("after breakpoint\n");
return 0;
}