Skip to content

Commit

Permalink
Initial versions
Browse files Browse the repository at this point in the history
  • Loading branch information
metiscus committed May 1, 2018
0 parents commit 2cb7f05
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CFLAGS := -gdwarf-4 -g3

default: problem_1

problem_1: CFLAGS += -O0
problem_1: problem_1.c
$(CC) $(CFLAGS) -o problem_1 problem_1.c

clean:
-rm -f core
-rm -f problem_1
Binary file added gdb_tutorial.odp
Binary file not shown.
10 changes: 10 additions & 0 deletions problem_1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <stdio.h>

int main(int argc, char** argv)
{
int *pointer = 0;

printf("The number is: %d\n", *pointer);

return 0;
}

0 comments on commit 2cb7f05

Please sign in to comment.