Signed-off-by: Mario Fleischmann <mario.fleischm...@lauterbach.com>
---
 gdbstub/gdbstub.c      | 7 -------
 include/exec/gdbstub.h | 8 +++++++-
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c
index 282e13e163..8166510f06 100644
--- a/gdbstub/gdbstub.c
+++ b/gdbstub/gdbstub.c
@@ -48,13 +48,6 @@
 
 #include "internals.h"
 
-typedef struct GDBRegisterState {
-    int base_reg;
-    gdb_get_reg_cb get_reg;
-    gdb_set_reg_cb set_reg;
-    const GDBFeature *feature;
-} GDBRegisterState;
-
 GDBState gdbserver_state;
 
 void gdb_init_gdbserver_state(void)
diff --git a/include/exec/gdbstub.h b/include/exec/gdbstub.h
index 0675b0b646..c2941e5c10 100644
--- a/include/exec/gdbstub.h
+++ b/include/exec/gdbstub.h
@@ -16,11 +16,17 @@ typedef struct GDBFeatureBuilder {
     int base_reg;
 } GDBFeatureBuilder;
 
-
 /* Get or set a register.  Returns the size of the register.  */
 typedef int (*gdb_get_reg_cb)(CPUState *cpu, GByteArray *buf, int reg);
 typedef int (*gdb_set_reg_cb)(CPUState *cpu, uint8_t *buf, int reg);
 
+typedef struct GDBRegisterState {
+    int base_reg;
+    gdb_get_reg_cb get_reg;
+    gdb_set_reg_cb set_reg;
+    const GDBFeature *feature;
+} GDBRegisterState;
+
 /**
  * gdb_init_cpu(): Initialize the CPU for gdbstub.
  * @cpu: The CPU to be initialized.
-- 
2.34.1


Reply via email to