From: Ian Campbell Subject: Re: [PATCH] tools: build debug qemu-xen in debug tools builds Date: Mon, 9 Sep 2013 15:05:20 +0100 Message-ID: <1378735520.19967.151.camel@kazak.uk.xensource.com> References: <1378213979-11087-1-git-send-email-mattjd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1378213979-11087-1-git-send-email-mattjd@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Matthew Daley Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-09-04 at 01:12 +1200, Matthew Daley wrote: > When building tools in debug mode (debug=y), pass --enable-debug when > configuring qemu-xen to enable some debug support (namely, to prevent > symbols from being stripped). > > Signed-off-by: Matthew Daley Neither Stefano nor Anthony offered formal acks but they seem happy with so I've applied it. > --- > tools/Makefile | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/tools/Makefile b/tools/Makefile > index 0531f48..066df66 100644 > --- a/tools/Makefile > +++ b/tools/Makefile > @@ -173,6 +173,12 @@ qemu-xen-dir-force-update: > $(GIT) reset --hard $(QEMU_UPSTREAM_REVISION); \ > fi > > +ifeq ($(debug),y) > +QEMU_XEN_ENABLE_DEBUG := --enable-debug > +else > +QEMU_XEN_ENABLE_DEBUG := > +endif > + > subdir-all-qemu-xen-dir: qemu-xen-dir-find > if test -d $(QEMU_UPSTREAM_URL) ; then \ > source=$(QEMU_UPSTREAM_URL); \ > @@ -181,6 +187,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find > fi; \ > cd qemu-xen-dir; \ > $$source/configure --enable-xen --target-list=i386-softmmu \ > + $(QEMU_XEN_ENABLE_DEBUG) \ > --prefix=$(PREFIX) \ > --source-path=$$source \ > --extra-cflags="-I$(XEN_ROOT)/tools/include \