]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
tools/Rules.mk: Don't optimize debug builds; add macro debugging information
authorEuan Harris <euan.harris@citrix.com>
Mon, 1 Dec 2014 14:21:05 +0000 (14:21 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 12 Jan 2015 16:10:51 +0000 (16:10 +0000)
commit1166ecf781b1016eaa61f8d5ba4fb1fde9d599b6
treef44123c918152437a7054b3d411d4e5fa8724ad0
parent7070eec417934360bf3aed434191246dfe4f8091
tools/Rules.mk: Don't optimize debug builds; add macro debugging information

Tools 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 the -O1 flag specified earlier.

Also specify -g3, to add macro debugging information which allows
gdb to expand macro invocations.   This is useful as libxl uses many
non-trivial macros.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- inserted a clarifying "enable" into comment ]
tools/Rules.mk