[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] xen: move CONFIG_DEBUG_INFO out of EXPERT section



In order to support hypervisor analysis of crash dumps, xen-syms needs
to contain debug_info. It should be allowed to configure the hypervisor
to be built with CONFIG_DEBUG_INFO in non-debug builds without having
to enable EXPERT.

Using a rather oldish gcc (7.5) it was verified that code generation
doesn't really differ between CONFIG_DEBUG_INFO on or off without
CONFIG_DEBUG being set (only observed differences were slightly
different symbol addresses, verified via "objdump -d"). The old gcc
version selection was based on the assumption, that newer gcc won't
regress in this regard.

So move CONFIG_DEBUG_INFO out of the section guarded by EXPERT.

Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
---
 xen/Kconfig.debug | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug
index fad3050d4f..a2691f4239 100644
--- a/xen/Kconfig.debug
+++ b/xen/Kconfig.debug
@@ -11,6 +11,13 @@ config DEBUG
 
          You probably want to say 'N' here.
 
+config DEBUG_INFO
+       bool "Compile Xen with debug info"
+       default DEBUG
+       ---help---
+         If you say Y here the resulting Xen will include debugging info
+         resulting in a larger binary image.
+
 if DEBUG || EXPERT
 
 config CRASH_DEBUG
@@ -28,13 +35,6 @@ config GDBSX
          If you want to enable support for debugging guests from dom0 via
          gdbsx then say Y.
 
-config DEBUG_INFO
-       bool "Compile Xen with debug info"
-       default y
-       ---help---
-         If you say Y here the resulting Xen will include debugging info
-         resulting in a larger binary image.
-
 config FRAME_POINTER
        bool "Compile Xen with frame pointers"
        default DEBUG
-- 
2.35.3




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.