From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf6Sw-0007VN-R4 for qemu-devel@nongnu.org; Wed, 22 May 2013 06:40:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf6Ss-0002FZ-7W for qemu-devel@nongnu.org; Wed, 22 May 2013 06:40:18 -0400 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:57411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf6Ss-0002FT-17 for qemu-devel@nongnu.org; Wed, 22 May 2013 06:40:14 -0400 Received: by mail-ea0-f170.google.com with SMTP id f15so1019451eak.15 for ; Wed, 22 May 2013 03:40:13 -0700 (PDT) Received: from localhost (h59ec325f.selukar.dyn.perspektivbredband.net. [89.236.50.95]) by mx.google.com with ESMTPSA id s43sm9089698eem.13.2013.05.22.03.40.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 22 May 2013 03:40:12 -0700 (PDT) From: edgar.iglesias@gmail.com Date: Wed, 22 May 2013 12:38:23 +0200 Message-Id: <1369219105-9111-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [RFC 0/2] Break the debug session on sw errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: "Edgar E. Iglesias" Hi, I've been using variations of this scheme to aid with debugging guest errors that QEMU can detect. I'm posting this RFC to see if there is interest to get something like this upstreamed. Patch 1 adds the mechanism to break the debugger session from within emulation models. Patch 2 hardcodes the interruption of the GDB session on log_guest_error calls to qemu_log_mask. Some possible ways to conditionalize the behaviour could be through cmdline options or through GDB remote commands. Any thoughts/ideas on this? Cheers, Edgar Edgar E. Iglesias (2): gdbstub: Add gdbserver_break() qemu-log: Interrupt the GDB session on guest-errors gdbstub.c | 68 ++++++++++++++++++++++++++++++++++++++---------- include/exec/gdbstub.h | 2 ++ qemu-log.c | 20 ++++++++++++++ 3 files changed, 76 insertions(+), 14 deletions(-) -- 1.7.10.4