From: Tej Subject: Re: How to debug Xen and Dom0 driver? Date: Wed, 8 Oct 2008 20:04:05 +0530 Message-ID: References: <5d649bdb0810080046i44e9751dh5aecc7892fd19c9a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5d649bdb0810080046i44e9751dh5aecc7892fd19c9a@mail.gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Neo Jia Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Oct 8, 2008 at 1:16 PM, Neo Jia wrote: > hi, > > I am wondering if anybody is doing Xen or Dom0 debugging with gdb > here. If yes, could you show me the procedure of doing that? For dom0, it will be similar to debugging in Linux e.g Use kgdb, netdump, kdump etc. and analyse those dump using crash tools. For domU use gdb built in debugger with xen. 1. cd xen-3.3.0/tool/debugger/gdb/README This explains everything from setting gdbserver-xen to debugging with gdb. 2. enable xendump by configuring xend-config.sxp file It is helpful for capturing vmcore dumps from xen guest. #(enable-dump no) change to (enable-dump yes) Restart xend start domU's and capture the vmcore @ /var/crash/* analyse the dump with crash HTH -tej > > Thanks, > Neo > > -- > I would remember that if researchers were not ambitious > probably today we haven't the technology we are using! > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >