No CONFIG_DEBUG_INFO on x86_64 Xen; why not?
Hi all,
lib/Kconfig.debug contains:
config DEBUG_INFO
bool "Compile the kernel with debug info"
depends on DEBUG_KERNEL && !X86_64_XEN
Does anyone recall why this was disabled for X86_64_XEN?
hg annotate xen-unstable.hg leads to the cset description
Update linux sparse tree to subarch layout.
and linux-2.6-merge.hg shows
various fixup in Kconfig to handle Xen
neither of which are particularly helpful. I've just completed a build with this change reverted and -g enabled and it built fine (although I'm remote from the box right now so can't boot it yet); and gdb on the vmlinux shows symbolic info is present.
Anyone remember, or object to reenabling CONFIG_DEBUG_INFO?
Thanks,
Stephen
Quoted 6 lines · Stephen C. Tweedie
neither of which are particularly helpful. I've just completed a build with this change reverted and -g enabled and it built fine (although I'm remote from the box right now so can't boot it yet); and gdb on the vmlinux shows symbolic info is present.
Anyone remember, or object to reenabling
CONFIG_DEBUG_INFO?
Well, it builds and boots fine, and we leave it disabled by default anyway, so I'll remove our patch to Kconfig.debug. I think maybe there was a problem with our port of debug code in entry-xen.S, but I see that file forcibly disables CONFIG_DEBUG_INFO when it builds, which is probably the better 'fix' for the time being.
-- Keir
Hi,
Quoted 7 lines · Keir Fraser
Quoted 1 line
Anyone remember, or object to reenabling
CONFIG_DEBUG_INFO?Well, it builds and boots fine, and we leave it disabled by default anyway, so I'll remove our patch to
Kconfig.debug. I think maybe there was a problem with our port of debug code inentry-xen.S, but I see that file forcibly disablesCONFIG_DEBUG_INFOwhen it builds, which is probably the better 'fix' for the time being.
Right, entry-xen.S has problems --- it's broken even with the CONFIG_DEBUG_INFO disable, as setting the new CONFIG_UNWIND_INFO option still breaks it again. But that's just as easy to disable as a temporary workaround. (I'd still like to find out why CFI is breaking on Xen with those options disabled, though.)
--Stephen