diff options
| author | Felipe Boeira <felipe.boeira@liu.se> | 2019-01-22 17:37:28 +0100 |
|---|---|---|
| committer | Felipe Boeira <felipe.boeira@liu.se> | 2019-01-22 17:37:28 +0100 |
| commit | efc06d038b98a2887306ebbce058361e43a68e77 (patch) | |
| tree | e55012a7d183872c54832860db1e1a0006fea23a /src/examples | |
| parent | 54f498fe4fb918ee7b40786b7599803bc9e7445a (diff) | |
| download | pintos-efc06d038b98a2887306ebbce058361e43a68e77.tar.gz | |
Added files for the GDB lab 0 exercise
Diffstat (limited to 'src/examples')
| -rw-r--r-- | src/examples/Makefile | 3 | ||||
| -rw-r--r-- | src/examples/printf.c | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/examples/Makefile b/src/examples/Makefile index 92d9038..986e492 100644 --- a/src/examples/Makefile +++ b/src/examples/Makefile @@ -6,9 +6,10 @@ SRCDIR = .. PROGS = cat cmp cp echo halt hex-dump ls mcat mcp mkdir pwd rm shell \ bubsort insult lineup matmult recursor \ sumargv lab2test lab1test lab1test2 pfs pfs_reader pfs_writer dummy longrun \ - child parent create-bad + child parent create-bad printf # Added test programs +printf_SRC = printf.c sumargv_SRC = sumargv.c lab2test_SRC = lab2test.c lab1test_SRC = lab1test.c diff --git a/src/examples/printf.c b/src/examples/printf.c new file mode 100644 index 0000000..2072e8e --- /dev/null +++ b/src/examples/printf.c @@ -0,0 +1,10 @@ +#include <stdio.h> +#include <syscall.h> + +int +main (int argc, char **argv) +{ + printf ("You got it, use your debugging skills during the labs!\n"); + + return EXIT_SUCCESS; +} |
