From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: debugging libxc / builders Date: Wed, 22 Jun 2005 22:55:43 -0500 Message-ID: <42BA32BF.8030105@us.ibm.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Newsham Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Tim Newsham wrote: > Hi, > I'm playing with the builders in libxc. I am having trouble > debugging the thing. I was wondering what options I have. > > - When I run 'xm create', what process calls down to the > xc_builder stuff? Can I attach to it with gdb? Xend (the daemon) actually calls the xc_XXX_build function. The C invocation occurs in the xc bindings. I'm not aware of an easy way to attach to bindings with gdb (although I presume it's possible). > Any hints or tips appreciated. It would probably be significantly easier to debug builder issues with VM-Tools. There's a single executable (vm-build.linux for instance) that only does building and can be stepped through with gdb. Of course, you could also write your own really simple app with libxc that just did a few calls to create and build the domain. You don't need any of the control channel stuff until the domain starts to actually boot. I can give you a more detailed example if you need. Regards, Anthony Liguori > Tim Newsham > http://www.lava.net/~newsham/ > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >