root / gdbstub.h @ 91a75935
History | View | Annotate | Download (1.1 kB)
1 | 1fddef4b | bellard | #ifndef GDBSTUB_H
|
---|---|---|---|
2 | 1fddef4b | bellard | #define GDBSTUB_H
|
3 | 1fddef4b | bellard | |
4 | cfc3475a | pbrook | #define DEFAULT_GDBSTUB_PORT "1234" |
5 | 1fddef4b | bellard | |
6 | e22a25c9 | aliguori | /* GDB breakpoint/watchpoint types */
|
7 | e22a25c9 | aliguori | #define GDB_BREAKPOINT_SW 0 |
8 | e22a25c9 | aliguori | #define GDB_BREAKPOINT_HW 1 |
9 | e22a25c9 | aliguori | #define GDB_WATCHPOINT_WRITE 2 |
10 | e22a25c9 | aliguori | #define GDB_WATCHPOINT_READ 3 |
11 | e22a25c9 | aliguori | #define GDB_WATCHPOINT_ACCESS 4 |
12 | e22a25c9 | aliguori | |
13 | a2d1ebaf | pbrook | typedef void (*gdb_syscall_complete_cb)(CPUState *env, |
14 | a2d1ebaf | pbrook | target_ulong ret, target_ulong err); |
15 | a2d1ebaf | pbrook | |
16 | 7ccfb2eb | blueswir1 | void gdb_do_syscall(gdb_syscall_complete_cb cb, const char *fmt, ...); |
17 | a2d1ebaf | pbrook | int use_gdb_syscalls(void); |
18 | 880a7578 | aliguori | void gdb_set_stop_cpu(CPUState *env);
|
19 | 1fddef4b | bellard | #ifdef CONFIG_USER_ONLY
|
20 | ca587a8e | aurel32 | int gdb_queuesig (void); |
21 | 1fddef4b | bellard | int gdb_handlesig (CPUState *, int); |
22 | e9009676 | bellard | void gdb_exit(CPUState *, int); |
23 | ca587a8e | aurel32 | void gdb_signalled(CPUState *, int); |
24 | 1fddef4b | bellard | int gdbserver_start(int); |
25 | 2b1319c8 | aurel32 | void gdbserver_fork(CPUState *);
|
26 | 4046d913 | pbrook | #else
|
27 | cfc3475a | pbrook | int gdbserver_start(const char *port); |
28 | 4046d913 | pbrook | #endif
|
29 | 56aebc89 | pbrook | /* Get or set a register. Returns the size of the register. */
|
30 | 56aebc89 | pbrook | typedef int (*gdb_reg_cb)(CPUState *env, uint8_t *buf, int reg); |
31 | 56aebc89 | pbrook | void gdb_register_coprocessor(CPUState *env,
|
32 | 56aebc89 | pbrook | gdb_reg_cb get_reg, gdb_reg_cb set_reg, |
33 | 56aebc89 | pbrook | int num_regs, const char *xml, int g_pos); |
34 | 1fddef4b | bellard | |
35 | 1fddef4b | bellard | #endif |