Skip to content

Commit 1fc2fa6

Browse files
committed
Add a few programs for debuggging.
1 parent 1a13842 commit 1fc2fa6

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

hellodebugger.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
printf("Hello, Debugger! Before in3.\n");
5+
asm("int3");
6+
printf("Hello, Debugger! After int3.\n");
7+
return 0;
8+
}
9+

helloworld.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
printf("Hello World!\n");
5+
return 0;
6+
}

int3func.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <stdio.h>
2+
3+
void foo() {
4+
printf("foo\n");
5+
// asm("int3");
6+
}
7+
int main () {
8+
int i;
9+
for (i = 0; i < 5; i++) {
10+
foo();
11+
}
12+
return 0;
13+
}

0 commit comments

Comments
 (0)