From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L127M-0000ty-SB for qemu-devel@nongnu.org; Fri, 14 Nov 2008 12:06:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L127L-0000tP-P1 for qemu-devel@nongnu.org; Fri, 14 Nov 2008 12:06:00 -0500 Received: from [199.232.76.173] (port=44804 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L127L-0000tJ-IN for qemu-devel@nongnu.org; Fri, 14 Nov 2008 12:05:59 -0500 Received: from hall.aurel32.net ([88.191.82.174]:39125) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L127L-0004z8-QM for qemu-devel@nongnu.org; Fri, 14 Nov 2008 12:06:00 -0500 Date: Fri, 14 Nov 2008 18:05:52 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Handle debug signals on PowerPC Message-ID: <20081114170552.GA9022@volta.aurel32.net> References: <48F3713D.1030706@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <48F3713D.1030706@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrew Stubbs Cc: qemu-devel@nongnu.org On Mon, Oct 13, 2008 at 05:03:09PM +0100, Andrew Stubbs wrote: > Hi, > > The attached patch allows PowerPC QEMU to be used with the debugger. > > Currently, any attempt to debug causes an unknown exception error. Note > that there are also a few other issues that prevent QEMU from working at > all (for me, at any rate, and not just with debugging), but those fixes > are not yet ready. Actually POWERPC_EXCP_DEBUG can not happen in user mode, while EXCP_DEBUG should be handled. The mistake come from a renaming of all PowerPC EXCP_* defines into POWERPC_EXCP_*. I have applied a patch to fix that. > Andrew > Index: linux-user/main.c > =================================================================== > --- linux-user/main.c (revision 5453) > +++ linux-user/main.c (working copy) > @@ -1286,6 +1286,7 @@ > "Aborting\n"); > break; > case POWERPC_EXCP_DEBUG: /* Debug interrupt */ > + case EXCP_DEBUG: > /* XXX: check this */ > { > int sig; -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net