This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] libxc printfs and debugging

To: David Pilger <pilger.david@xxxxxxxxx>
Subject: Re: [Xen-devel] libxc printfs and debugging
From: Ryan Harper <ryanh@xxxxxxxxxx>
Date: Wed, 7 Mar 2007 10:29:43 -0600
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 07 Mar 2007 08:28:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <280848580703070816j53f9faa8p4633f659ad61a579@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <280848580703070816j53f9faa8p4633f659ad61a579@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
* David Pilger <pilger.david@xxxxxxxxx> [2007-03-07 10:20]:
> Hi,
> Where does all the IPRINTF output goes in libxc?
> I can't find it (the INFO constant is 1 of course)...

I'm not sure about the IPRINTF, but if you build the tools with debug=y
passed to the make command, the DPRINTFs go to


> How do you debug libxc code btw?

I found uncommenting the following in tools/libxc/Makefile , and
rebuilding (cd tools; make debug=y ) very useful when debugging as it
let me attach with gdb to the xend python process and define break
points in the libxc code.

# Define this to make it possible to run valgrind on code linked with
# these
# libraries.
CFLAGS   += -DVALGRIND -O0 -ggdb3

Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>