diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:30:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:30:32 -0800 |
commit | 8b23a6c7e1aee255004dd19098d4c2462b61b849 (patch) | |
tree | 7a4d682ba51f0ff0364c5ca2509f515bdaf96de9 /gdbstub.h | |
parent | f721e3ac031f892af46f255a47d7f54a91317b30 (diff) | |
download | external_qemu-8b23a6c7e1aee255004dd19098d4c2462b61b849.zip external_qemu-8b23a6c7e1aee255004dd19098d4c2462b61b849.tar.gz external_qemu-8b23a6c7e1aee255004dd19098d4c2462b61b849.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'gdbstub.h')
-rw-r--r-- | gdbstub.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gdbstub.h b/gdbstub.h new file mode 100644 index 0000000..ba65f93 --- /dev/null +++ b/gdbstub.h @@ -0,0 +1,19 @@ +#ifndef GDBSTUB_H +#define GDBSTUB_H + +#define DEFAULT_GDBSTUB_PORT "1234" + +typedef void (*gdb_syscall_complete_cb)(CPUState *env, + target_ulong ret, target_ulong err); + +void gdb_do_syscall(gdb_syscall_complete_cb cb, const char *fmt, ...); +int use_gdb_syscalls(void); +#ifdef CONFIG_USER_ONLY +int gdb_handlesig (CPUState *, int); +void gdb_exit(CPUState *, int); +int gdbserver_start(int); +#else +int gdbserver_start(const char *port); +#endif + +#endif |