From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: gdbstub: packet reply is too long Date: Sat, 20 Dec 2008 16:49:08 +0100 Message-ID: <494D13F4.2040609@web.de> References: <1229776952.22890.2.camel@ws-aschultz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigEA19E3ED49BA07AEC162255B" Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org To: Andreas Schultz Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:41916 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752130AbYLTPtX (ORCPT ); Sat, 20 Dec 2008 10:49:23 -0500 In-Reply-To: <1229776952.22890.2.camel@ws-aschultz> Sender: kvm-owner@vger.kernel.org List-ID: 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--