From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2XpW-0007TF-0O for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:09:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2XpV-0007T1-Hd for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:09:49 -0500 Received: from [199.232.76.173] (port=52628 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2XpV-0007Sy-Eq for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:09:49 -0500 Received: from savannah.gnu.org ([199.232.41.3]:55050 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2XpV-0003Xs-ET for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:09:49 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L2XpU-0002WI-A7 for qemu-devel@nongnu.org; Tue, 18 Nov 2008 21:09:48 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L2XpU-0002WE-1U for qemu-devel@nongnu.org; Tue, 18 Nov 2008 21:09:48 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Tue, 18 Nov 2008 21:09:48 +0000 Subject: [Qemu-devel] [5748] x86: Dump debug registers (Jan Kiszka) 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 Revision: 5748 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5748 Author: aliguori Date: 2008-11-18 21:09:47 +0000 (Tue, 18 Nov 2008) Log Message: ----------- x86: Dump debug registers (Jan Kiszka) As the debug registers are no longer dummies, let's include their current state into the 'info registers' output and other register dumps. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/target-i386/helper.c Modified: trunk/target-i386/helper.c =================================================================== --- trunk/target-i386/helper.c 2008-11-18 21:08:15 UTC (rev 5747) +++ trunk/target-i386/helper.c 2008-11-18 21:09:47 UTC (rev 5748) @@ -644,6 +644,10 @@ env->cr[2], env->cr[3], (uint32_t)env->cr[4]); + for(i = 0; i < 4; i++) + cpu_fprintf(f, "DR%d=%016" PRIx64 " ", i, env->dr[i]); + cpu_fprintf(f, "\nDR6=%016" PRIx64 " DR7=%016" PRIx64 "\n", + env->dr[6], env->cr[7]); } else #endif { @@ -675,6 +679,9 @@ (uint32_t)env->cr[2], (uint32_t)env->cr[3], (uint32_t)env->cr[4]); + for(i = 0; i < 4; i++) + cpu_fprintf(f, "DR%d=%08x ", i, env->dr[i]); + cpu_fprintf(f, "\nDR6=%08x DR7=%08x\n", env->dr[6], env->cr[7]); } if (flags & X86_DUMP_CCOP) { if ((unsigned)env->cc_op < CC_OP_NB)