Skip to contentSkip to conversation

gdb stub support and loadvm should work together

PATCH New Jason Wessel 1 participant 1 message Jun 29, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gdb stub support and loadvm should work together

Right now the gdb stub support is mutually exclusive of the loadvm command line support. In fact it might be nice to have the loadvm and savevm commands exposed via the gdb stub so you can save an instance which you can debug again later.

The attached patch makes it so you can execute a -loadvm from the command line while still having the gdb stub support active.

Jason.

---
 vl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
vl.c +1 -1
Index: qemu/vl.c
===================================================================
@@ -8011,7 +8011,7 @@ int main(int argc, char **argv)
                     gdbstub_port);
             exit(1);
         }
-    } else 
+    }
 #endif
     if (loadvm)
         do_loadvm(loadvm);