From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4Fwh-0005ZT-AM for qemu-devel@nongnu.org; Fri, 29 Jun 2007 08:51:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4Fwe-0005Yn-0m for qemu-devel@nongnu.org; Fri, 29 Jun 2007 08:51:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4Fwd-0005Yk-OK for qemu-devel@nongnu.org; Fri, 29 Jun 2007 08:51:27 -0400 Received: from mail.windriver.com ([147.11.1.11] helo=mail.wrs.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I4Fwd-0007Hg-7U for qemu-devel@nongnu.org; Fri, 29 Jun 2007 08:51:27 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id l5TCpNGC028237 for ; Fri, 29 Jun 2007 05:51:23 -0700 (PDT) Message-ID: <46850079.50700@windriver.com> Date: Fri, 29 Jun 2007 07:52:09 -0500 From: Jason Wessel MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000505070609010108040307" Subject: [Qemu-devel] [PATCH] gdb stub support and loadvm should work together Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------000505070609010108040307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. Signed-off-by: Jason Wessel Jason. --------------000505070609010108040307 Content-Type: text/x-patch; name="gdb_stub_loadvm_support.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdb_stub_loadvm_support.patch" --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: qemu/vl.c =================================================================== --- qemu.orig/vl.c +++ qemu/vl.c @@ -8011,7 +8011,7 @@ int main(int argc, char **argv) gdbstub_port); exit(1); } - } else + } #endif if (loadvm) do_loadvm(loadvm); --------------000505070609010108040307--