From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2YCr-0006Km-6i for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:33:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2YCn-0006Jc-Au for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:33:56 -0500 Received: from [199.232.76.173] (port=49695 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2YCn-0006JY-5W for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:33:53 -0500 Received: from fg-out-1718.google.com ([72.14.220.159]:26415) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L2YCn-0006Ol-59 for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:33:53 -0500 Received: by fg-out-1718.google.com with SMTP id l26so2637360fgb.8 for ; Tue, 18 Nov 2008 13:33:50 -0800 (PST) Message-ID: <492334B9.3010705@codemonkey.ws> Date: Tue, 18 Nov 2008 15:33:45 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v5 18/18] gdbstub: x86: Switch 64/32 bit registers dynamically References: <20081117161857.26880.45423.stgit@mchn012c.ww002.siemens.net> <20081117161859.26880.70678.stgit@mchn012c.ww002.siemens.net> In-Reply-To: <20081117161859.26880.70678.stgit@mchn012c.ww002.siemens.net> Content-Type: text/plain; charset=UTF-8; format=flowed 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 Jan Kiszka wrote: > Commit 5459 broke gdbstub's dynamic register set switching between > x86-64 and i386. That prevents setting the correct architecture in gdb > when debugging 32 or 16-bit code in a 64-bit emulator. This patch > reintroduces the feature over previous refactorings. > How does this interact with SMP? If you have one VCPU in 32-bit mode and another in 64-bit mode, won't that confuse GDB? Regards, Anthony Liguori > >