From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LE454-0001mG-CD for qemu-devel@nongnu.org; Sat, 20 Dec 2008 10:49:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LE453-0001m4-3u for qemu-devel@nongnu.org; Sat, 20 Dec 2008 10:49:29 -0500 Received: from [199.232.76.173] (port=52541 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LE452-0001m0-K1 for qemu-devel@nongnu.org; Sat, 20 Dec 2008 10:49:28 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]:41959) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LE451-0006zr-HV for qemu-devel@nongnu.org; Sat, 20 Dec 2008 10:49:28 -0500 Message-ID: <494D13F4.2040609@web.de> Date: Sat, 20 Dec 2008 16:49:08 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <1229776952.22890.2.camel@ws-aschultz> In-Reply-To: <1229776952.22890.2.camel@ws-aschultz> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigEA19E3ED49BA07AEC162255B" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: gdbstub: packet reply is too long Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas Schultz Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEA19E3ED49BA07AEC162255B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Andreas Schultz wrote: > Hi, >=20 > I'm trying to debug a 32bit (i386) kernel on a 64bit host under kvm, bu= t > gdb always refuses it with: > Remote 'g' packet reply is too long: > 00000000000000000000000000000000000000000000000023060000000000000000000= 0000000000000000000000000000000000000000000000000000000000000000000000000= 0000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000f0ff0000000000000230020000f0000000= 0000000000000000000000000000000000000000000000000000000000000000000000000= 0000000000000000000000000000000000000000000000000000000000000000000000000= 00000000000000000000000000000000000000000000000000007f0300000000000000000= 0000000000000000000000000000000000000000000000000000000000000000000000000= 0000000000000000000000000000000000000000000000000000000000000000000000000= 0000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000 > 0000000000000000000000000000000000000000000000000000000000000000000000= 0000000000000000000000000000000000000000000000000000000000000000000000000= 0000000000000000000000000000000000000000000000000000000000000000000000000= 00000000000000000000000000000000000000000000000000000000 >=20 > I tried kvm-79 and kvm-git from today. gdb is v6.8 (ubuntu intrepid) >=20 > Any hints? QEMU and also KVM's x86_64 version are currently broken /wrt debugging targets < 64 bits. I've posted a fix a while ago, but there were concerns that gdb should better be enhanced (which is basically true, but unrealistic to achieve in the near future). In the meantime, you may want to have a look at my kvm [1] or qemu patch queue [2]. Note that unless you provide a binary to gdb that is 32 bit already, you may have to switch the architecture manually ("set arch i386" or "i8086") before attaching. Jan [1] git://git.kiszka.org/kvm-userspace.git gdb-queue [2] git://git.kiszka.org/qemu.git gdb-queue --------------enigEA19E3ED49BA07AEC162255B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklNE/4ACgkQniDOoMHTA+k0FwCfUoZwCBfhRU/9RMVgDDWXB575 3x8AnjqfvhaasAzI0wU0cjBjj7jd3fWf =yRP8 -----END PGP SIGNATURE----- --------------enigEA19E3ED49BA07AEC162255B--