From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38843 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzutB-0004tc-8A for qemu-devel@nongnu.org; Sun, 26 Sep 2010 13:19:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzutA-0004UW-3a for qemu-devel@nongnu.org; Sun, 26 Sep 2010 13:19:49 -0400 Received: from out-61.smtp.ucla.edu ([169.232.46.166]:58911) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ozut9-0004UJ-NB for qemu-devel@nongnu.org; Sun, 26 Sep 2010 13:19:48 -0400 Message-ID: <4C9F80A1.7050302@cs.ucla.edu> Date: Sun, 26 Sep 2010 10:19:29 -0700 From: Eddie Kohler 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> In-Reply-To: <4C9EEBCF.5080904@web.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka , qemu-devel@nongnu.org OK, thanks. I understand how you're relying on the current behavior. I'd rather not change all of QEMU and GDB in one step, 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. - How about a maintenance packet type that changed behavior to what I would prefer (breakpoints and memory access use virtual addresses, not linear addresses)? - We could add a "segment identifier" parameter to cpu_get_phys_page_debug, ignored on all targets but i386 at first. Then we could pass information through to cpu_get_phys_page_debug about what kind of address is being translated. This change could be propagated to cpu_memory_rw_debug (now or later). Would you object? Eddie