Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
kbuild: pass -g to assembler under CONFIG_DEBUG_INFO
Browse files Browse the repository at this point in the history
The assembler for a while now supports -gdwarf to generate source line info
just like the C compiler does.  Source-level assembly debugging sounds like an
oxymoron, but it is handy to be able to see the right source file and read its
comments rather than just the disassembly.  This patch enables -gdwarf for
assembly files when CONFIG_DEBUG_INFO=y and the assembler supports the option.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Roland McGrath authored and Sam Ravnborg committed Oct 12, 2007
1 parent 14f3156 commit cf851aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ endif

ifdef CONFIG_DEBUG_INFO
CFLAGS += -g
AFLAGS += -gdwarf-2
endif

# Force gcc to behave correct even for buggy distributions
Expand Down

0 comments on commit cf851aa

Please sign in to comment.