From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emre Can Sezer Subject: How do you debug Xen? Date: Fri, 09 Jan 2009 10:46:11 -0500 Message-ID: <49677143.8060101@ncsu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Devel List-Id: xen-devel@lists.xenproject.org Hi, I want to use a debugger to debug some code I wrote in the hypervisor. What is the best way to go about this? I would appreciate any links or info. The only thing I found was enabling gdbstub and using gdb remotely via serial cable. Is there an example on how to set this up? The examples in kgdb website refer to linux, so I'm hoping to get something more specific. I tried to look through the mailing list archives but couldn't find anything but the patches. And if I'm trying to debug a 64-bit Xen, can I do this from a 32-bit remote machine? Thanks, John