Fix file system racing and ext2 directory insertion (#58)
[lunaix-os.git] / lunaix-os / includes / sdbg / gdbstub.h
1 #ifndef __LUNAIX_GDBSTUB_H
2 #define __LUNAIX_GDBSTUB_H
3
4 #include <lunaix/hart_state.h>
5 #include <hal/serial.h>
6 #include <sys/gdbstub.h>
7
8 struct gdb_state
9 {
10     int signum;
11     struct serial_dev* sdev;
12     reg_t registers[GDB_CPU_NUM_REGISTERS];
13 };
14
15 void
16 gdbstub_loop(struct hart_state* hstate);
17
18 #endif /* __LUNAIX_GDBSTUB_H */