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
Decoupling Architectural-specific Code (#35)
[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 d5b386d552f11c271c0ce0e227a17009f94f96eb..f036d503d844932b47d007bb53e2749f57d65c37 100644
(file)
--- a/
lunaix-os/includes/sdbg/gdbstub.h
+++ b/
lunaix-os/includes/sdbg/gdbstub.h
@@
-1,9
+1,17
@@
#ifndef __LUNAIX_GDBSTUB_H
#define __LUNAIX_GDBSTUB_H
#ifndef __LUNAIX_GDBSTUB_H
#define __LUNAIX_GDBSTUB_H
-#include <lunaix/pcontext.h>
+#include <lunaix/hart_state.h>
+#include <hal/serial.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 */