public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Pass -g to assembler under CONFIG_DEBUG_INFO
@ 2007-07-11 18:53 Roland McGrath
  2007-07-11 21:09 ` Andrew Morton
  0 siblings, 1 reply; 14+ messages in thread
From: Roland McGrath @ 2007-07-11 18:53 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds; +Cc: linux-kernel


The assembler for a while now supports -g 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 -g for
assembly files when CONFIG_DEBUG_INFO=y and the assembler supports the option.

Signed-off-by: Roland McGrath <roland@redhat.com>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 8a3c271..88b2252 100644
--- a/Makefile
+++ b/Makefile
@@ -498,6 +498,7 @@ endif
 
 ifdef CONFIG_DEBUG_INFO
 CFLAGS		+= -g
+AFLAGS		+= $(call as-option, -g)
 endif
 
 # Force gcc to behave correct even for buggy distributions

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-07-14  1:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-11 18:53 [PATCH] Pass -g to assembler under CONFIG_DEBUG_INFO Roland McGrath
2007-07-11 21:09 ` Andrew Morton
2007-07-11 21:30   ` Roland McGrath
2007-07-11 22:37     ` Jason Wessel
2007-07-11 22:43       ` Roland McGrath
2007-07-11 23:03         ` Andrew Morton
2007-07-11 23:07           ` Roland McGrath
2007-07-11 23:15           ` Andreas Schwab
2007-07-11 23:19             ` Roland McGrath
2007-07-11 23:27               ` Andreas Schwab
2007-07-11 23:40           ` Linus Torvalds
2007-07-11 23:53             ` Andrew Morton
2007-07-12  8:23               ` Jan Engelhardt
2007-07-14  1:08               ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox