aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 18:19:05 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 18:19:05 +0200
commit2a51790c7238a705367ed1e2a498e402dcc0169a (patch)
tree47b85c07854807d6b2e6f6d39aaa29fa03b62d88
parent9757ce312de4c425567c2fcc55991ab5828773cd (diff)
downloadgdbstub-2a51790c7238a705367ed1e2a498e402dcc0169a.tar.gz
Added needed includes when DEBUG is used
-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