From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpEk9-0003wT-Bk for qemu-devel@nongnu.org; Mon, 23 Jan 2012 02:55:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpEk8-00082q-CR for qemu-devel@nongnu.org; Mon, 23 Jan 2012 02:55:09 -0500 Received: from mail-tul01m020-f173.google.com ([209.85.214.173]:58629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpEk8-00082R-3y for qemu-devel@nongnu.org; Mon, 23 Jan 2012 02:55:08 -0500 Received: by obbup16 with SMTP id up16so3235541obb.4 for ; Sun, 22 Jan 2012 23:55:07 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4F1C7C8F.6030607@web.de> References: <4F1C5A39.10907@web.de> <4F1C61C7.7030401@web.de> <4F1C7C8F.6030607@web.de> Date: Mon, 23 Jan 2012 08:55:07 +0100 Message-ID: From: Francis Moreau Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] Failed to use gdb with qemu 15.1 (with and without kvm support) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Max Filippov , qemu-devel@nongnu.org On Sun, Jan 22, 2012 at 10:15 PM, Jan Kiszka wrote: > On 2012-01-22 20:58, Francis Moreau wrote: >> On Sun, Jan 22, 2012 at 8:21 PM, Jan Kiszka wrote: >>> On 2012-01-22 20:16, Max Filippov wrote: >>>>> When stopping the guest with -S before it booted, gdb will interrupt it >>>>> while it is still in 16-bit real mode. Later on, when Linux runs, the >>>>> guest is in 64-bit protected mode. gdb is not prepared for such a >>>>> switch. All you can do: >>>> >>>> Try >>>> >>>> set arch i386:x86-64 >>>> >>>> in the GDB prompt. >>>> >>> >>> Won't help if gdb already connected in 16/32-bit before. >> >> Why not ? is it a gdb bug ? > > More than a bug, a deficit in the x86 target management of gdb. Requires > some work, but gdb people are at least aware of the issue. > Thanks again for your help. -- Francis