From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LD2Ke-00049e-Ct for qemu-devel@nongnu.org; Wed, 17 Dec 2008 14:45:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LD2Kc-00047i-OK for qemu-devel@nongnu.org; Wed, 17 Dec 2008 14:45:19 -0500 Received: from [199.232.76.173] (port=52489 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LD2Kc-00047V-LX for qemu-devel@nongnu.org; Wed, 17 Dec 2008 14:45:18 -0500 Received: from nan.false.org ([208.75.86.248]:45902) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LD2Kc-00072c-Bu for qemu-devel@nongnu.org; Wed, 17 Dec 2008 14:45:18 -0500 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id C699510CD6 for ; Wed, 17 Dec 2008 19:45:16 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id AAC8810A4D for ; Wed, 17 Dec 2008 19:45:16 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LD2KZ-0002i9-Ti for qemu-devel@nongnu.org; Wed, 17 Dec 2008 14:45:15 -0500 Date: Wed, 17 Dec 2008 14:45:15 -0500 From: Daniel Jacobowitz Subject: Re: [Qemu-devel] User emulation & gdb & sigsegv Message-ID: <20081217194515.GA10369@caradoc.them.org> References: <1228950413.3898.6.camel@cocoduo.atr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1228950413.3898.6.camel@cocoduo.atr> 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 On Thu, Dec 11, 2008 at 12:06:53AM +0100, Lionel Landwerlin wrote: > Hello, > > Currently, when using gdb connected to qemu, if a sigsegv is raised, > Qemu just exits. > > How should I modify Qemu to redirect this last signal to the connected > gdb and print a stack trace at least ? > > I tried to call gdb_handlesig(gdbstub.c) from > force_sig(linux-user/signal.c) but Qemu just crashes. Hi Lionel - I didn't see this message until today (I read the list only infrequently), but I posted a patch for this exact issue the next day. Let me know if it doesn't work for you, please. -- Daniel Jacobowitz CodeSourcery