From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Date: Wed, 06 May 2009 15:42:32 +0000 Subject: [patch] fix qemu-kvm to build when gdbstub is disabled Message-Id: <4A01AFE8.3020008@sgi.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------010004000604070704020007" List-Id: To: kvm-ia64@vger.kernel.org This is a multi-part message in MIME format. --------------010004000604070704020007 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, The latest changes to qemu-kvm breaks miserably if one tries to build without CONFIG_GDBSTUB. Jes --------------010004000604070704020007 Content-Type: text/x-patch; name="0007-qemu-gdbstub.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0007-qemu-gdbstub.patch" Make qemu-kvm build again when CONFIG_GDBSTUB is not set. Signed-off-by: Jes Sorensen --- gdbstub.h | 6 ++++++ vl.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) Index: qemu-kvm/gdbstub.h =================================================================== --- qemu-kvm.orig/gdbstub.h +++ qemu-kvm/gdbstub.h @@ -15,7 +15,13 @@ void gdb_do_syscall(gdb_syscall_complete_cb cb, const char *fmt, ...); int use_gdb_syscalls(void); +#ifdef CONFIG_GDBSTUB void gdb_set_stop_cpu(CPUState *env); +#else +static inline void gdb_set_stop_cpu(CPUState *env) +{ +} +#endif #ifdef CONFIG_USER_ONLY int gdb_queuesig (void); int gdb_handlesig (CPUState *, int); Index: qemu-kvm/vl.c =================================================================== --- qemu-kvm.orig/vl.c +++ qemu-kvm/vl.c @@ -4417,13 +4417,11 @@ } if (cpu_can_run(env)) ret = qemu_cpu_exec(env); -#ifndef CONFIG_GDBSTUB if (ret == EXCP_DEBUG) { gdb_set_stop_cpu(env); debug_requested = 1; break; } -#endif } } --------------010004000604070704020007--