root / gdbstub.h @ 651721b2
History | View | Annotate | Download (936 Bytes)
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 | a2d1ebaf | pbrook | typedef void (*gdb_syscall_complete_cb)(CPUState *env, |
7 | a2d1ebaf | pbrook | target_ulong ret, target_ulong err); |
8 | a2d1ebaf | pbrook | |
9 | 7ccfb2eb | blueswir1 | void gdb_do_syscall(gdb_syscall_complete_cb cb, const char *fmt, ...); |
10 | a2d1ebaf | pbrook | int use_gdb_syscalls(void); |
11 | 880a7578 | aliguori | void gdb_set_stop_cpu(CPUState *env);
|
12 | 1fddef4b | bellard | #ifdef CONFIG_USER_ONLY
|
13 | ca587a8e | aurel32 | int gdb_queuesig (void); |
14 | 1fddef4b | bellard | int gdb_handlesig (CPUState *, int); |
15 | e9009676 | bellard | void gdb_exit(CPUState *, int); |
16 | ca587a8e | aurel32 | void gdb_signalled(CPUState *, int); |
17 | 1fddef4b | bellard | int gdbserver_start(int); |
18 | 2b1319c8 | aurel32 | void gdbserver_fork(CPUState *);
|
19 | 4046d913 | pbrook | #else
|
20 | cfc3475a | pbrook | int gdbserver_start(const char *port); |
21 | 4046d913 | pbrook | #endif
|
22 | 56aebc89 | pbrook | /* Get or set a register. Returns the size of the register. */
|
23 | 56aebc89 | pbrook | typedef int (*gdb_reg_cb)(CPUState *env, uint8_t *buf, int reg); |
24 | 56aebc89 | pbrook | void gdb_register_coprocessor(CPUState *env,
|
25 | 56aebc89 | pbrook | gdb_reg_cb get_reg, gdb_reg_cb set_reg, |
26 | 56aebc89 | pbrook | int num_regs, const char *xml, int g_pos); |
27 | 1fddef4b | bellard | |
28 | 1fddef4b | bellard | #endif |