From: Ian Jackson Subject: Re: [PATCH v3] Separate runtime debug output from debug symbols Date: Wed, 8 Oct 2014 16:16:02 +0100 Message-ID: <21557.21810.882724.782414@mariner.uk.xensource.com> References: <1412779865-31148-1-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: <1412779865-31148-1-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 Cc: Wei Liu , Keir Fraser , Ian Campbell , Stefano Stabellini , Tim Deegan , xen-devel@lists.xen.org, Jan Beulich , Samuel Thibault , David Scott List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[PATCH v3] Separate runtime debug output from debug symbols"): > Two make variables exist (debug=y and debug_symbols=y) to control either > the creation of additional runtime debug or the creation of debug > symbols for tools like gdb. Some places in the code still passed -g > unconditionally to the compiler. Wrap them into a "debug_symbols" > conditional. The xen build passed -g unconditional, reuse the existing > debug_symbols=y check in Config.mk. There are still parts of the code > that hardcode -g, namely the external qemu-traditional and stubdom > packages. They are not changed by this patch. Why is it wrong to always pass -g ? (There should indeed be separate control over whether installed code is symbol-stripped.) Ian.