aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2014-02-20 20:08:31 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-03-02 17:13:31 +0400
commit8ead6018837f13f1ef4a40c3eb5054512c160577 (patch)
treea24bede7ecf4f93bd450fb9460499c1c3b7594f9
parentc5d3c49896582bb338e19149b23d3613510059fb (diff)
stubs: Optimize dependencies for gdbstub.c
It does not need qemu-common.h. Including exec/gdbstub.h fixes a warning from static code analyzers and avoids mismatching declarations for xml_builtin. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--stubs/gdbstub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stubs/gdbstub.c b/stubs/gdbstub.c
index c1dbfe7fb7..f6a4553a31 100644
--- a/stubs/gdbstub.c
+++ b/stubs/gdbstub.c
@@ -1,4 +1,6 @@
-#include "qemu-common.h"
+#include "stdbool.h" /* bool (in exec/gdbstub.h) */
+#include "stddef.h" /* NULL */
+#include "exec/gdbstub.h" /* xml_builtin */
const char *const xml_builtin[][2] = {
{ NULL, NULL }