00001 #ifndef GDBSTUB_H
00002 #define GDBSTUB_H
00003
00004 #define DEFAULT_GDBSTUB_PORT "1234"
00005
00006 typedef void (*gdb_syscall_complete_cb)(CPUState *env,
00007 target_ulong ret, target_ulong err);
00008
00009 void gdb_do_syscall(gdb_syscall_complete_cb cb, const char *fmt, ...);
00010 int use_gdb_syscalls(void);
00011 void gdb_set_stop_cpu(CPUState *env);
00012 #ifdef CONFIG_USER_ONLY
00013 int gdb_queuesig (void);
00014 int gdb_handlesig (CPUState *, int);
00015 void gdb_exit(CPUState *, int);
00016 void gdb_signalled(CPUState *, int);
00017 int gdbserver_start(int);
00018 void gdbserver_fork(CPUState *);
00019 #else
00020 int gdbserver_start(const char *port);
00021 #endif
00022
00023 typedef int (*gdb_reg_cb)(CPUState *env, uint8_t *buf, int reg);
00024 void gdb_register_coprocessor(CPUState *env,
00025 gdb_reg_cb get_reg, gdb_reg_cb set_reg,
00026 int num_regs, const char *xml, int g_pos);
00027
00028 #endif