gdb stub defines

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@290 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2003-06-27 18:52:23 +00:00
parent da415d54bf
commit 3b0dca51b0

View File

@ -304,7 +304,14 @@ void page_unprotect_range(uint8_t *data, unsigned long data_size);
#endif /* SINGLE_CPU_DEFINES */ #endif /* SINGLE_CPU_DEFINES */
#define DEFAULT_GDBSTUB_PORT 1234
void cpu_abort(CPUState *env, const char *fmt, ...); void cpu_abort(CPUState *env, const char *fmt, ...);
extern CPUState *cpu_single_env; extern CPUState *cpu_single_env;
/* gdb stub API */
extern int gdbstub_fd;
CPUState *cpu_gdbstub_get_env(void *opaque);
int cpu_gdbstub(void *opaque, void (*main_loop)(void *opaque), int port);
#endif /* CPU_ALL_H */ #endif /* CPU_ALL_H */