aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdbstub.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdbstub.h b/gdbstub.h
index 9c7b505..95f80f1 100644
--- a/gdbstub.h
+++ b/gdbstub.h
@@ -28,6 +28,11 @@
#define DEBUG 0
#endif
+#if DEBUG
+#include <stdio.h>
+#include <stdlib.h>
+#endif
+
/* Include platform specific definitions */
#include "gdbstub_sys.h"
@@ -80,4 +85,4 @@ int dbg_sys_mem_writeb(address addr, char val);
int dbg_sys_continue();
int dbg_sys_step();
-#endif \ No newline at end of file
+#endif