Received: from [140.186.70.92] (port=55908 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCVWr-0005ng-4v for qemu-devel@nongnu.org; Sun, 31 Oct 2010 06:53:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCVWA-0001fh-7i for qemu-devel@nongnu.org; Sun, 31 Oct 2010 06:52:49 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:50952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCVW9-0001fR-Ip for qemu-devel@nongnu.org; Sun, 31 Oct 2010 06:52:06 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <4CCA788E.6050407@siemens.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] Re: About QEMU debugging console Date: Sun, 31 Oct 2010 11:49:11 +0100 References: <488094999.01944@mail.hust.edu.cn> <4CC96E31.3040503@siemens.com> <1288320071.14023.13.camel@zhiyuan-desktop> <4CCA788E.6050407@siemens.com> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Zhiyuan Shao , qemu-devel Developers Am 29.10.2010 um 09:32 schrieb Jan Kiszka: > Am 29.10.2010 04:41, Zhiyuan Shao wrote: >> On Thu, 2010-10-28 at 14:36 +0200, Jan Kiszka wrote: >>> The most important lacking feature is proper system-level debugging >>> support for gdb (via gdbstub). Once gdb has full access to all CPU >>> states of the x86 targets, you can pretty-print whatever you want >>> inside >>> gdb via some nice Python scripts etc. >>> >> Are you mean that it is the responsibility of gdb to parse the output >> data of qemu built-in commands and generate user-friend output? Or >> grant >> gdb full access to the target machine, which is emulated by Qemu, >> and it >> is the responsibility of gdb again to generate easy-to-read output >> for >> the users? > > More the latter: The full register set (including MSRs) need to be > made > available to gdb via the remote protocol, and gdb has to be taught > interpreting it. This is e.g. required to understand the current > operating mode (16/32/64 bit) and legacy segmentation. [...] >> I think the first solution sounds more feasible, however, we still >> need >> more helpful built-in commands in Qemu. >> And it is hard to implement the second solution: By doing this, we >> may >> need to have full support from GDB community. > > For sure. But the major issue is more about resources to work on this > than gdb community support. Browse their mailing list archive to find > that they are actually supportive regarding this topic. Since this seems a recurring topic, maybe you should put this onto the GSoC ideas list? Regards, Andreas