From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9MjX-0002Kt-6j for qemu-devel@nongnu.org; Sun, 07 Dec 2008 11:43:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9MjV-0002Jg-DK for qemu-devel@nongnu.org; Sun, 07 Dec 2008 11:43:50 -0500 Received: from [199.232.76.173] (port=49763 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9MjU-0002JT-Uw for qemu-devel@nongnu.org; Sun, 07 Dec 2008 11:43:49 -0500 Received: from moutng.kundenserver.de ([212.227.126.177]:56814) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9MjU-0003fP-BX for qemu-devel@nongnu.org; Sun, 07 Dec 2008 11:43:48 -0500 Received: from localhost ([127.0.0.1] ident=stefan) by flocke.weilnetz.de with esmtp (Exim 4.69) (envelope-from ) id 1L9MjQ-0001Yi-K0 for qemu-devel@nongnu.org; Sun, 07 Dec 2008 17:43:44 +0100 Message-ID: <493BFD40.3000706@mail.berlios.de> Date: Sun, 07 Dec 2008 17:43:44 +0100 From: Stefan Weil MIME-Version: 1.0 Subject: [Qemu-devel] Single stepping command line option? (was: [5910] target-ppc: convert SPR accesses to TCG) References: <20081207162420.GZ4440@hall.aurel32.net> In-Reply-To: <20081207162420.GZ4440@hall.aurel32.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit 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 Aurelien Jarno schrieb: > On Sun, Dec 07, 2008 at 06:13:45PM +0200, Blue Swirl wrote: >> On 12/7/08, Aurelien Jarno wrote >>> --- trunk/target-ppc/translate.c 2008-12-07 13:40:15 UTC (rev 5909) >>> +++ trunk/target-ppc/translate.c 2008-12-07 13:40:29 UTC (rev 5910) >>> @@ -38,7 +38,7 @@ >>> #define GDBSTUB_SINGLE_STEP 0x4 >>> >>> /* Include definitions for instructions classes and implementations >>> flags */ >>> -//#define DO_SINGLE_STEP >>> +#define DO_SINGLE_STEP >> Now every instruction is single stepped. >> > > Good catch. I have enabled it for debugging purpose, and then forget to > disable it again. That should be fixed now. Thanks. What about replacing DO_SINGLE_STEP, MIPS_SINGLE_STEP and SH4_SINGLE_STEP (are there more of them?) by a command line option (-singlestep) which allows setting this at run time? The increase in execution time can be neglected. Maybe changing single stepping from the Qemu monitor might also be useful. Regards Stefan Weil