Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cf851aa75694bdcc27a5092b2e45de6dcdc1cfa8
Commit:     cf851aa75694bdcc27a5092b2e45de6dcdc1cfa8
Parent:     14f31562dbda93500fdf74b8158248fde2d556bb
Author:     Roland McGrath <[EMAIL PROTECTED]>
AuthorDate: Fri Sep 28 20:51:58 2007 +0200
Committer:  Sam Ravnborg <[EMAIL PROTECTED](none)>
CommitDate: Fri Oct 12 21:20:32 2007 +0200

    kbuild: pass -g to assembler under CONFIG_DEBUG_INFO
    
    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 <[EMAIL PROTECTED]>
    Cc: Sam Ravnborg <[EMAIL PROTECTED]>
    Cc: <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 1b0d84d..0ad6e8d 100644
--- a/Makefile
+++ b/Makefile
@@ -502,6 +502,7 @@ endif
 
 ifdef CONFIG_DEBUG_INFO
 CFLAGS         += -g
+AFLAGS         += -gdwarf-2
 endif
 
 # Force gcc to behave correct even for buggy distributions
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to