From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56391 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZjVW-0001f9-20 for qemu-devel@nongnu.org; Mon, 03 Jan 2011 07:27:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZjVV-0000LG-1V for qemu-devel@nongnu.org; Mon, 03 Jan 2011 07:27:25 -0500 Received: from smtp.salomon.at ([193.186.16.13]:60789 helo=sauxb.salomon.at) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZjVU-0000LA-O9 for qemu-devel@nongnu.org; Mon, 03 Jan 2011 07:27:24 -0500 Received: from servex01.wamas.com (servex01.salomon.at [172.28.2.2]) by sauxb.salomon.at (8.12.10/8.12.10) with ESMTP id p03CRMh9012979 for ; Mon, 3 Jan 2011 13:27:23 +0100 (MET) Message-ID: <4D21C0AA.8010907@salomon.at> Date: Mon, 03 Jan 2011 13:27:22 +0100 From: Markus Duft MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Debugging a 64-bit kernel in qemu References: <4D21A474.2040909@salomon.at> <4D21AFB5.9010605@web.de> <4D21BDFA.1050105@salomon.at> In-Reply-To: <4D21BDFA.1050105@salomon.at> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 01/03/2011 01:15 PM, Markus Duft wrote: > On 01/03/2011 12:15 PM, Jan Kiszka wrote: > [snip] [snip] > actually, i find that Ted Harkington was right: in 0.11.1 i can debug 32 bit code with qemu-system-x86_64 well enough (which means i debugged all the 32 bit part of my kernel without ever seen _any_ problem/non-working feature/whatever). wouldn't it be better to have 64 bit debugging working in the 64 bit version, with 32 bit mode working mostly (with whatever small issues), rather than just completely dooming 64 bit debugging...? > owh - spoke too soon. there must be more to it: i tried reverting 5f30fa18ad043a841fe9f0c3917ac60f2519ebd1, which restores ability to debug my 64 bit kernel just fine, but now i get the packet too long when trying to debug 32 bit code.... wouldn't it be possible to implement some kind of explicit switch with qemu in the meantime, so i can choose what bitness i want to debug? I know, it's a problem with gdb under the hood, but still - it's really uncool debugging doesn't work in either of the two cases. Regards, Markus > any further ideas? > > BTW, i did look around a little for this problem before (although i wasn't aware of the thread you pointed me to). All those threads don't propose any solution other than "fix gdb", which may or may not take ages. > > Regards, Markus > >> >> Jan >> > >