Statistics
| Branch: | Revision:

root / gdbstub.h @ 4c3b5a48

History | View | Annotate | Download (1.3 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 1c14f162 Blue Swirl
#ifdef NEED_CPU_H
14 a2d1ebaf pbrook
typedef void (*gdb_syscall_complete_cb)(CPUState *env,
15 a2d1ebaf pbrook
                                        target_ulong ret, target_ulong err);
16 a2d1ebaf pbrook
17 7ccfb2eb blueswir1
void gdb_do_syscall(gdb_syscall_complete_cb cb, const char *fmt, ...);
18 a2d1ebaf pbrook
int use_gdb_syscalls(void);
19 880a7578 aliguori
void gdb_set_stop_cpu(CPUState *env);
20 0e1c9c54 Paul Brook
void gdb_exit(CPUState *, int);
21 1fddef4b bellard
#ifdef CONFIG_USER_ONLY
22 ca587a8e aurel32
int gdb_queuesig (void);
23 1fddef4b bellard
int gdb_handlesig (CPUState *, int);
24 ca587a8e aurel32
void gdb_signalled(CPUState *, int);
25 2b1319c8 aurel32
void gdbserver_fork(CPUState *);
26 4046d913 pbrook
#endif
27 56aebc89 pbrook
/* Get or set a register.  Returns the size of the register.  */
28 56aebc89 pbrook
typedef int (*gdb_reg_cb)(CPUState *env, uint8_t *buf, int reg);
29 56aebc89 pbrook
void gdb_register_coprocessor(CPUState *env,
30 56aebc89 pbrook
                              gdb_reg_cb get_reg, gdb_reg_cb set_reg,
31 56aebc89 pbrook
                              int num_regs, const char *xml, int g_pos);
32 1fddef4b bellard
33 1fddef4b bellard
#endif
34 1c14f162 Blue Swirl
35 1c14f162 Blue Swirl
#ifdef CONFIG_USER_ONLY
36 1c14f162 Blue Swirl
int gdbserver_start(int);
37 1c14f162 Blue Swirl
#else
38 1c14f162 Blue Swirl
int gdbserver_start(const char *port);
39 1c14f162 Blue Swirl
#endif
40 1c14f162 Blue Swirl
41 4c3b5a48 Blue Swirl
/* in gdbstub-xml.c, generated by scripts/feature_to_c.sh */
42 0b65b9e1 Blue Swirl
extern const char *const xml_builtin[][2];
43 0b65b9e1 Blue Swirl
44 1c14f162 Blue Swirl
#endif