2005-04-18 03:16:13 +08:00
|
|
|
#ifndef GDBSTUB_H
|
|
|
|
#define GDBSTUB_H
|
|
|
|
|
|
|
|
#define DEFAULT_GDBSTUB_PORT 1234
|
|
|
|
|
2007-01-28 11:10:55 +08:00
|
|
|
typedef void (*gdb_syscall_complete_cb)(CPUState *env,
|
|
|
|
target_ulong ret, target_ulong err);
|
|
|
|
|
|
|
|
void gdb_do_syscall(gdb_syscall_complete_cb cb, char *fmt, ...);
|
|
|
|
int use_gdb_syscalls(void);
|
2005-04-18 03:16:13 +08:00
|
|
|
#ifdef CONFIG_USER_ONLY
|
|
|
|
int gdb_handlesig (CPUState *, int);
|
2005-04-27 04:42:36 +08:00
|
|
|
void gdb_exit(CPUState *, int);
|
2005-04-18 03:16:13 +08:00
|
|
|
int gdbserver_start(int);
|
2007-01-28 09:53:16 +08:00
|
|
|
#else
|
|
|
|
int gdbserver_start(CharDriverState *chr);
|
2007-02-06 04:46:05 +08:00
|
|
|
int gdbserver_start_port(int port);
|
2007-01-28 09:53:16 +08:00
|
|
|
#endif
|
2005-04-18 03:16:13 +08:00
|
|
|
|
|
|
|
#endif
|