From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rp4li-0001tD-RL for qemu-devel@nongnu.org; Sun, 22 Jan 2012 16:16:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rp4lh-00047n-NZ for qemu-devel@nongnu.org; Sun, 22 Jan 2012 16:16:06 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:60336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rp4lh-00047j-BQ for qemu-devel@nongnu.org; Sun, 22 Jan 2012 16:16:05 -0500 Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate01.web.de (Postfix) with ESMTP id F05151A99538E for ; Sun, 22 Jan 2012 22:16:03 +0100 (CET) Message-ID: <4F1C7C8F.6030607@web.de> Date: Sun, 22 Jan 2012 22:15:59 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <4F1C5A39.10907@web.de> <4F1C61C7.7030401@web.de> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC857F7261C802011ED89D51B" 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: Francis Moreau Cc: Max Filippov , qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC857F7261C802011ED89D51B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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, th= e >>>> 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. >=20 > 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. Jan --------------enigC857F7261C802011ED89D51B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8cfJIACgkQitSsb3rl5xRAAgCg17tGh5+fF6j79GrQFqnXW/0c /HkAn2y8SPjB/yGhXeVskRBAhuhYxVRf =m1OI -----END PGP SIGNATURE----- --------------enigC857F7261C802011ED89D51B--