From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: [PATCH] Use -fno-omit-frame-pointer in addition to -g Date: Thu, 6 Mar 2008 15:55:09 +0000 Message-ID: <20080306155509.GA10848@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Use -fno-omit-frame-pointer in addition to -g as that permits to use simple stack walk while debugging Signed-off-by: Samuel Thibault diff -r fb74347d80c3 Config.mk --- a/Config.mk Wed Mar 05 12:20:40 2008 +0000 +++ b/Config.mk Thu Mar 06 15:52:14 2008 +0000 @@ -55,7 +55,7 @@ endef endef ifeq ($(debug),y) -CFLAGS += -g +CFLAGS += -g -fno-omit-frame-pointer endif CFLAGS += -fno-strict-aliasing diff -r fb74347d80c3 extras/mini-os/minios.mk --- a/extras/mini-os/minios.mk Wed Mar 05 12:20:40 2008 +0000 +++ b/extras/mini-os/minios.mk Thu Mar 06 15:52:14 2008 +0000 @@ -15,7 +15,7 @@ DEF_LDFLAGS = DEF_LDFLAGS = ifeq ($(debug),y) -DEF_CFLAGS += -g +DEF_CFLAGS += -g -fno-omit-frame-pointer else DEF_CFLAGS += -O3 endif