Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NveD0-0000jl-FB for qemu-devel@nongnu.org; Sat, 27 Mar 2010 18:10:22 -0400 Received: from [140.186.70.92] (port=45950 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NveCx-0000hX-8i for qemu-devel@nongnu.org; Sat, 27 Mar 2010 18:10:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NveCr-0007TS-Cg for qemu-devel@nongnu.org; Sat, 27 Mar 2010 18:10:14 -0400 Received: from mail-pz0-f194.google.com ([209.85.222.194]:65113) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NveCr-0007TL-62 for qemu-devel@nongnu.org; Sat, 27 Mar 2010 18:10:13 -0400 Received: by pzk32 with SMTP id 32so3450018pzk.4 for ; Sat, 27 Mar 2010 15:10:11 -0700 (PDT) MIME-Version: 1.0 Date: Sun, 28 Mar 2010 00:10:11 +0200 Message-ID: From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] [PATCH 1/7] Adjust debug handling List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Signed-off-by: Blue Swirl --- vl.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index 8a73235..a2869b8 100644 --- a/vl.c +++ b/vl.c @@ -2920,7 +2920,7 @@ static bool tcg_cpu_exec(void) if (ret == EXCP_DEBUG) { gdb_set_stop_cpu(env); - debug_requested = 1; + debug_requested = EXCP_DEBUG; break; } } @@ -2983,8 +2983,8 @@ static void main_loop(void) #endif } while (vm_can_run()); - if (qemu_debug_requested()) { - vm_stop(EXCP_DEBUG); + if ((r = qemu_debug_requested())) { + vm_stop(r); } if (qemu_shutdown_requested()) { monitor_protocol_event(QEVENT_SHUTDOWN, NULL); -- 1.6.2.4