mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:27:44 +00:00
CPU: Handle breakpoint trap
Also, start working on the debugger app.
This commit is contained in:
parent
c112f53357
commit
77f671b462
10 changed files with 184 additions and 23 deletions
8
Demos/Debugee/Makefile
Normal file
8
Demos/Debugee/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = Debugee
|
||||
|
||||
# LIB_DEPS = Core
|
||||
|
||||
include ../../Makefile.common
|
8
Demos/Debugee/main.cpp
Normal file
8
Demos/Debugee/main.cpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include <cstdio>
|
||||
int main(int, char**)
|
||||
{
|
||||
printf("before breakpoint\n");
|
||||
asm("int3");
|
||||
printf("after breakpoint\n");
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue