Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIHhj-0002RT-L4 for qemu-devel@nongnu.org; Tue, 07 Aug 2007 01:34:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIHhg-0002R0-19 for qemu-devel@nongnu.org; Tue, 07 Aug 2007 01:34:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIHhf-0002Qx-Qp for qemu-devel@nongnu.org; Tue, 07 Aug 2007 01:33:59 -0400 Received: from adsl-2-196.adsl.easynet.fr ([212.11.31.196] helo=athena.purplelabs.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IIHhe-0005mB-Bi for qemu-devel@nongnu.org; Tue, 07 Aug 2007 01:33:58 -0400 From: Vincent Palatin Subject: Re: [Qemu-devel] debug register implementation of x86? Date: Tue, 7 Aug 2007 07:35:58 +0200 References: <46B7F721.2010906@ustc.edu> In-Reply-To: <46B7F721.2010906@ustc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708070735.58405.vincent.palatin_qemu@polytechnique.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: neversetsun@ustc.edu On Tuesday 07 August 2007 06:37, shizheng wrote: > Hi,all: > > I think memory access monitoring is useful in debugging a target > running in qemu. There are two ways to do this(or even more): > > 1.x86 specific. add debug register emulation in qemu. > 2.hardware independent. such as adding a command in qemu monitor. > > I would like to know if anybody has already done this? > Or is there any problem that prevents from doing so? It is already implemented in the GDB stub of Qemu. Just add a watchpoint with a GDB connected to QEMU. -- Vincent