Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204824
b: refs/heads/master
c: d6f4ceb
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Michal Marek committed Jul 14, 2010
1 parent e880ea9 commit cc065f0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01ab17887f4cdcb8bb5a5d1bc3b160d186e6e99b
refs/heads/master: d6f4ceb796ebf1a8c8a9ad4a8ea0d181aaec7de6
4 changes: 4 additions & 0 deletions trunk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,10 @@ KBUILD_CFLAGS += -g
KBUILD_AFLAGS += -gdwarf-2
endif

ifdef CONFIG_DEBUG_INFO_REDUCED
KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly)
endif

ifdef CONFIG_FUNCTION_TRACER
KBUILD_CFLAGS += -pg
endif
Expand Down
13 changes: 13 additions & 0 deletions trunk/lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,19 @@ config DEBUG_INFO

If unsure, say N.

config DEBUG_INFO_REDUCED
bool "Reduce debugging information"
depends on DEBUG_INFO
help
If you say Y here gcc is instructed to generate less debugging
information for structure types. This means that tools that
need full debugging information (like kgdb or systemtap) won't
be happy. But if you merely need debugging information to
resolve line numbers there is no loss. Advantage is that
build directory object sizes shrink dramatically over a full
DEBUG_INFO build and compile times are reduced too.
Only works with newer gcc versions.

config DEBUG_VM
bool "Debug VM"
depends on DEBUG_KERNEL
Expand Down

0 comments on commit cc065f0

Please sign in to comment.