Introducing LunaBuild to the build flow (#36)
[lunaix-os.git] / lunaix-os / includes / sdbg / gdbstub.h
index c4c60da2c0f44a55e6ab23a62ea01900058c7cc2..bd8b6464e9e7fe5630a902e8858a9a86aa62d192 100644 (file)
@@ -1,9 +1,18 @@
 #ifndef __LUNAIX_GDBSTUB_H
 #define __LUNAIX_GDBSTUB_H
 
-#include <sys/interrupts.h>
+#include <lunaix/hart_state.h>
+#include <hal/serial.h>
+#include <sys/gdbstub.h>
+
+struct gdb_state
+{
+    int signum;
+    struct serial_dev* sdev;
+    reg_t registers[GDB_CPU_NUM_REGISTERS];
+};
 
 void
-gdbstub_loop(isr_param* param);
+gdbstub_loop(struct hart_state* hstate);
 
 #endif /* __LUNAIX_GDBSTUB_H */