public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] fix qemu-kvm to build when gdbstub is disabled
@ 2009-05-06 15:42 Jes Sorensen
  2009-05-07  1:24 ` Zhang, Xiantao
  0 siblings, 1 reply; 16+ messages in thread
From: Jes Sorensen @ 2009-05-06 15:42 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-ia64@vger.kernel.org, kvm@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 105 bytes --]

Hi,

The latest changes to qemu-kvm breaks miserably if one tries to build
without CONFIG_GDBSTUB.

Jes


[-- Attachment #2: 0007-qemu-gdbstub.patch --]
[-- Type: text/x-patch, Size: 1108 bytes --]

Make qemu-kvm build again when CONFIG_GDBSTUB is not set.

Signed-off-by: Jes Sorensen <jes@sgi.com>

---
 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
     }
 }
 

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-05-07 13:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06 15:42 [patch] fix qemu-kvm to build when gdbstub is disabled Jes Sorensen
2009-05-07  1:24 ` Zhang, Xiantao
2009-05-07  8:14   ` Jes Sorensen
2009-05-07  9:31   ` Avi Kivity
2009-05-07  9:50     ` Zhang, Xiantao
2009-05-07  9:59       ` Avi Kivity
2009-05-07 10:51     ` Jan Kiszka
2009-05-07 11:00       ` Avi Kivity
2009-05-07 11:13         ` Jan Kiszka
2009-05-07 11:28           ` Avi Kivity
2009-05-07 11:38             ` Jan Kiszka
2009-05-07 12:34         ` Jes Sorensen
2009-05-07 12:59           ` Jan Kiszka
2009-05-07 13:03             ` Jes Sorensen
2009-05-07 13:07               ` Jan Kiszka
2009-05-07 13:31                 ` Jes Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox