summaryrefslogtreecommitdiff
path: root/gdbstub.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-29 19:23:47 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-29 19:23:47 +0000
commit3187040af7b7e6145d80ba602aac70f9bb249958 (patch)
tree6d3acf8ca007935e6289ad82b744f97af1f4dafe /gdbstub.h
parentf67f93cf6a73376624ecb0a9c45db15995302f03 (diff)
downloadqemu-3187040af7b7e6145d80ba602aac70f9bb249958.tar.gz
qemu-3187040af7b7e6145d80ba602aac70f9bb249958.tar.bz2
qemu-3187040af7b7e6145d80ba602aac70f9bb249958.zip
Allow various header files to be included from non-CPU code
Allow balloon.h, gdbstub.h and kvm.h to be included from non-CPU code. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'gdbstub.h')
-rw-r--r--gdbstub.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/gdbstub.h b/gdbstub.h
index 5740041c76..54d753cfd4 100644
--- a/gdbstub.h
+++ b/gdbstub.h
@@ -10,6 +10,7 @@
#define GDB_WATCHPOINT_READ 3
#define GDB_WATCHPOINT_ACCESS 4
+#ifdef NEED_CPU_H
typedef void (*gdb_syscall_complete_cb)(CPUState *env,
target_ulong ret, target_ulong err);
@@ -21,10 +22,7 @@ int gdb_queuesig (void);
int gdb_handlesig (CPUState *, int);
void gdb_exit(CPUState *, int);
void gdb_signalled(CPUState *, int);
-int gdbserver_start(int);
void gdbserver_fork(CPUState *);
-#else
-int gdbserver_start(const char *port);
#endif
/* Get or set a register. Returns the size of the register. */
typedef int (*gdb_reg_cb)(CPUState *env, uint8_t *buf, int reg);
@@ -33,3 +31,11 @@ void gdb_register_coprocessor(CPUState *env,
int num_regs, const char *xml, int g_pos);
#endif
+
+#ifdef CONFIG_USER_ONLY
+int gdbserver_start(int);
+#else
+int gdbserver_start(const char *port);
+#endif
+
+#endif