aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--lib/Kconfig.debug11
2 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb5790580fca..14781f36e327 100644
--- a/Makefile
+++ b/Makefile
@@ -517,6 +517,10 @@ else
517CFLAGS += -fomit-frame-pointer 517CFLAGS += -fomit-frame-pointer
518endif 518endif
519 519
520ifdef CONFIG_UNWIND_INFO
521CFLAGS += -fasynchronous-unwind-tables
522endif
523
520ifdef CONFIG_DEBUG_INFO 524ifdef CONFIG_DEBUG_INFO
521CFLAGS += -g 525CFLAGS += -g
522endif 526endif
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index a314e663d517..f2618e1c2b93 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -195,6 +195,17 @@ config FRAME_POINTER
195 some architectures or if you use external debuggers. 195 some architectures or if you use external debuggers.
196 If you don't debug the kernel, you can say N. 196 If you don't debug the kernel, you can say N.
197 197
198config UNWIND_INFO
199 bool "Compile the kernel with frame unwind information"
200 depends on !IA64
201 depends on !MODULES || !(MIPS || PARISC || PPC || SUPERH || SPARC64 || V850)
202 default DEBUG_KERNEL
203 help
204 If you say Y here the resulting kernel image will be slightly larger
205 but not slower, and it will give very useful debugging information.
206 If you don't debug the kernel, you can say N, but we may not be able
207 to solve problems without frame unwind information or frame pointers.
208
198config FORCED_INLINING 209config FORCED_INLINING
199 bool "Force gcc to inline functions marked 'inline'" 210 bool "Force gcc to inline functions marked 'inline'"
200 depends on DEBUG_KERNEL 211 depends on DEBUG_KERNEL