Re: [Xen-devel] [PATCH] libxl/Makefile: Don't optimize debug builds; add macro debugging information

2014-12-01 Thread Ian Campbell
On Mon, 2014-12-01 at 11:55 +, Euan Harris wrote: > On Mon, Dec 01, 2014 at 11:43:13AM +, Ian Campbell wrote: > > On Mon, 2014-12-01 at 10:39 +, Euan Harris wrote: > > > libxl debug builds are built with optimization level -O1, inherited from > > > the CFLAGS definition in StdGNU.mk.

Re: [Xen-devel] [PATCH] libxl/Makefile: Don't optimize debug builds; add macro debugging information

2014-12-01 Thread Euan Harris
On Mon, Dec 01, 2014 at 11:43:13AM +, Ian Campbell wrote: > On Mon, 2014-12-01 at 10:39 +, Euan Harris wrote: > > libxl debug builds are built with optimization level -O1, inherited from > > the CFLAGS definition in StdGNU.mk. Optimizations confuse the debugger, > > and the comment justif

Re: [Xen-devel] [PATCH] libxl/Makefile: Don't optimize debug builds; add macro debugging information

2014-12-01 Thread Ian Campbell
On Mon, 2014-12-01 at 10:39 +, Euan Harris wrote: > libxl debug builds are built with optimization level -O1, inherited from > the CFLAGS definition in StdGNU.mk. Optimizations confuse the debugger, > and the comment justifying -O1 in StdGNU.mk should not apply for a > userspace library. Di

[Xen-devel] [PATCH] libxl/Makefile: Don't optimize debug builds; add macro debugging information

2014-12-01 Thread Euan Harris
libxl debug builds are built with optimization level -O1, inherited from the CFLAGS definition in StdGNU.mk. Optimizations confuse the debugger, and the comment justifying -O1 in StdGNU.mk should not apply for a userspace library. Disable optimization by appending -O0 to CFLAGS, which overrides