git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introducing LunaBuild to the build flow (#36)
[lunaix-os.git]
/
lunaix-os
/
includes
/
sdbg
/
gdbstub.h
diff --git
a/lunaix-os/includes/sdbg/gdbstub.h
b/lunaix-os/includes/sdbg/gdbstub.h
index c4c60da2c0f44a55e6ab23a62ea01900058c7cc2..bd8b6464e9e7fe5630a902e8858a9a86aa62d192 100644
(file)
--- a/
lunaix-os/includes/sdbg/gdbstub.h
+++ b/
lunaix-os/includes/sdbg/gdbstub.h
@@
-1,9
+1,18
@@
#ifndef __LUNAIX_GDBSTUB_H
#define __LUNAIX_GDBSTUB_H
#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
void
-gdbstub_loop(
isr_param* param
);
+gdbstub_loop(
struct hart_state* hstate
);
#endif /* __LUNAIX_GDBSTUB_H */
#endif /* __LUNAIX_GDBSTUB_H */