Commit 3b0dca51b0cefb662f1d2757fcccfd563c58b2b9
1 parent
da415d54
gdb stub defines
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@290 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
7 additions
and
0 deletions
cpu-all.h
@@ -304,7 +304,14 @@ void page_unprotect_range(uint8_t *data, unsigned long data_size); | @@ -304,7 +304,14 @@ void page_unprotect_range(uint8_t *data, unsigned long data_size); | ||
304 | 304 | ||
305 | #endif /* SINGLE_CPU_DEFINES */ | 305 | #endif /* SINGLE_CPU_DEFINES */ |
306 | 306 | ||
307 | +#define DEFAULT_GDBSTUB_PORT 1234 | ||
308 | + | ||
307 | void cpu_abort(CPUState *env, const char *fmt, ...); | 309 | void cpu_abort(CPUState *env, const char *fmt, ...); |
308 | extern CPUState *cpu_single_env; | 310 | extern CPUState *cpu_single_env; |
309 | 311 | ||
312 | +/* gdb stub API */ | ||
313 | +extern int gdbstub_fd; | ||
314 | +CPUState *cpu_gdbstub_get_env(void *opaque); | ||
315 | +int cpu_gdbstub(void *opaque, void (*main_loop)(void *opaque), int port); | ||
316 | + | ||
310 | #endif /* CPU_ALL_H */ | 317 | #endif /* CPU_ALL_H */ |