From mboxrd@z Thu Jan 1 00:00:00 1970 From: PUCCETTI Armand Subject: Compiling XEN 3.0.1 in debug mode? Date: Fri, 08 Sep 2006 18:40:18 +0200 Message-ID: <45019CF2.30200@cea.fr> 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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) thanks! Armand