From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58701 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P07Dy-0004TO-EZ for qemu-devel@nongnu.org; Mon, 27 Sep 2010 02:30:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P07Dw-00008h-WE for qemu-devel@nongnu.org; Mon, 27 Sep 2010 02:30:05 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:45433) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P07Dw-00007G-IC for qemu-devel@nongnu.org; Mon, 27 Sep 2010 02:30:04 -0400 Message-ID: <4CA039E3.9030604@web.de> Date: Mon, 27 Sep 2010 08:29:55 +0200 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH] i386 debugging stubs: Consider segment bases References: <4C9D415F.6090909@cs.ucla.edu> <4C9DA344.5010702@web.de> <4C9DB45B.7080609@cs.ucla.edu> <4C9EEBCF.5080904@web.de> <4C9F80A1.7050302@cs.ucla.edu> In-Reply-To: <4C9F80A1.7050302@cs.ucla.edu> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC00E9249DDD8E659ED264466" Sender: jan.kiszka@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eddie Kohler Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC00E9249DDD8E659ED264466 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 26.09.2010 19:19, Eddie Kohler wrote: > OK, thanks. I understand how you're relying on the current behavior. >=20 > I'd rather not change all of QEMU and GDB in one step, The first step is changing gdb anyway. > but I'd like to > address this. QEMU documentation implies, and new users expect, that > debugging uses virtual addresses, not the segmentation-specific "linear= > addresses" that are actually used now. >=20 > - How about a maintenance packet type that changed behavior to what I > would prefer (breakpoints and memory access use virtual addresses, not > linear addresses)? >=20 > - We could add a "segment identifier" parameter to > cpu_get_phys_page_debug, ignored on all targets but i386 at first. The= n > we could pass information through to cpu_get_phys_page_debug about what= > kind of address is being translated. This change could be propagated t= o > cpu_memory_rw_debug (now or later). Would you object? These changes would establish a temporary interface for an incomplete workaround, and that even with impact on non-x86 code. I would prefer if you could invest your time on the gdb side instead. Anything improved there is not lost - in contrast to the modifications of qemu. I would try to support any effort in this direction. BTW, gdb has nice Python binding these days, so some extensions may also start their life as a helper script. Jan --------------enigC00E9249DDD8E659ED264466 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkygOecACgkQitSsb3rl5xRp7ACg21iJm0QWlLvCm8vmSNT0jc2U ctwAoLqBoBFghjiAyeeQmdOEESSjC8mt =Je2E -----END PGP SIGNATURE----- --------------enigC00E9249DDD8E659ED264466--