summaryrefslogtreecommitdiff
path: root/userspace
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-12-05 02:45:36 +0100
committerMichal Idziorek <m.i@gmx.at>2014-12-05 02:45:36 +0100
commit05b104b09292dac40c85aab7ab7b2ea2265d407b (patch)
treed98e3bad5b0792d1bfbafa95b94c06fdb64e6d6a /userspace
parent73c5852c068f3dcd58cdb8617251c5aca59b2460 (diff)
playing with external debugging in qemu from gdb
Diffstat (limited to 'userspace')
-rw-r--r--userspace/Makefile1
-rw-r--r--userspace/foolshell.c2
-rw-r--r--userspace/sys/Makefile4
3 files changed, 5 insertions, 2 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
index 2434008..86c221e 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -6,6 +6,7 @@ CFLAGS+=-I..
CFLAGS+=-w
CFLAGS+=-std=gnu11
CFLAGS+=-O3
+CFLAGS+=-g
PROGS=foolshell ls simple brainfuck add checker clear task1 task2 init
diff --git a/userspace/foolshell.c b/userspace/foolshell.c
index d44204c..3a87158 100644
--- a/userspace/foolshell.c
+++ b/userspace/foolshell.c
@@ -229,7 +229,7 @@ int process(char *buf)
exit(1);
}
int status;
- wait(&status);
+ if(strcmp(token[1],"branch"))wait(&status);
}
return 0;
diff --git a/userspace/sys/Makefile b/userspace/sys/Makefile
index e341312..5e217fa 100644
--- a/userspace/sys/Makefile
+++ b/userspace/sys/Makefile
@@ -1,5 +1,7 @@
CC=i686-foolos-gcc
-CFLAGS=-I../..
+
+CFLAGS=
+CFLAGS+=-I../..
CFLAGS+=-w