Statistics
| Branch: | Revision:

root / gdbstub.h @ 4efbe58f

History | View | Annotate | Download (841 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 1fddef4b bellard
int gdb_handlesig (CPUState *, int);
14 e9009676 bellard
void gdb_exit(CPUState *, int);
15 1fddef4b bellard
int gdbserver_start(int);
16 4046d913 pbrook
#else
17 cfc3475a pbrook
int gdbserver_start(const char *port);
18 4046d913 pbrook
#endif
19 56aebc89 pbrook
/* Get or set a register.  Returns the size of the register.  */
20 56aebc89 pbrook
typedef int (*gdb_reg_cb)(CPUState *env, uint8_t *buf, int reg);
21 56aebc89 pbrook
void gdb_register_coprocessor(CPUState *env,
22 56aebc89 pbrook
                              gdb_reg_cb get_reg, gdb_reg_cb set_reg,
23 56aebc89 pbrook
                              int num_regs, const char *xml, int g_pos);
24 1fddef4b bellard
25 1fddef4b bellard
#endif