From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 28/28] Separate runtime debug output from debug symbols Date: Thu, 25 Sep 2014 16:41:05 +0100 Message-ID: <54243791.1050502@citrix.com> References: <1411658423-18877-1-git-send-email-olaf@aepfle.de> <1411658423-18877-29-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411658423-18877-29-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering , xen-devel@lists.xen.org Cc: Keir Fraser , David Scott , Stefano Stabellini , Tim Deegan , Ian Jackson , Jan Beulich , Samuel Thibault , Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org On 25/09/14 16:20, Olaf Hering wrote: > --- a/xen/Rules.mk > +++ b/xen/Rules.mk > @@ -43,7 +43,10 @@ ALL_OBJS-$(x86) += $(BASEDIR)/crypto/built_in.o > > CFLAGS += -fno-builtin -fno-common > CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith > -CFLAGS += -pipe -g -D__XEN__ -include $(BASEDIR)/include/xen/config.h > +ifeq ($(debug_symbols),y) > +CFLAGS += -g > +endif > +CFLAGS += -pipe -D__XEN__ -include $(BASEDIR)/include/xen/config.h I am not sure this is correct. Xen needs to embed its full symbol table for backtraces, so does need to be built unconditionally with -g ~Andrew