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


[Xen-devel] Compiling XEN 3.0.1 in debug mode?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Compiling XEN 3.0.1 in debug mode?
From: PUCCETTI Armand <armand.puccetti@xxxxxx>
Date: Fri, 08 Sep 2006 18:40:18 +0200
Delivery-date: Fri, 08 Sep 2006 09:38:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (X11/20060728)
Dear XEN development team,

How could I proceed for compiling XEN in debug mode, for the purpose of
running it under the control of gdb?? The idea is to run the XEN kernel within an emulator, such as qemu or bochs, and let the emulator act as a gdb server for any
remote gdb client.

We have tried to compile XEN using the command

$ make CC="gcc -g" V=1 CONFIG_DEBUG_INFO=1 world

but this does not generate a binary image with debug info. The .o files
are however compiled in debug mode. Therefore,
the debug info seems to be stripped from the image somewhere...

Or, alternatively, is there another means to early debug XEN at source level??
(I mean , debugging the code right from the beginning, ie from __start_xen)



Xen-devel mailing list

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