[U-Boot-Users] [PATCH] Use -g instead of -gstabs in AFLAGS_DEBUG

Haavard Skinnemoen hskinnemoen at atmel.com
Wed Aug 30 15:34:10 CEST 2006


In config.mk, -Wa,-gstabs is unconditionally appended to AFLAGS no
matter what the target's preferred debugging format is. The AVR32
toolchain doesn't support the stabs debugging format at all, so this
will obviously not work.

This patch simply replaces -gstabs with -g, so that the default
debugging format for the architecture is used.

Signed-off-by: Haavard Skinnemoen <hskinnemoen at atmel.com>

---
 config.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/config.mk b/config.mk
index b59667a..07ade42 100644
--- a/config.mk
+++ b/config.mk
@@ -143,7 +143,7 @@ CFLAGS := $(CPPFLAGS) -Wall -Wno-trigrap
 endif
 endif
 
-AFLAGS_DEBUG := -Wa,-gstabs
+AFLAGS_DEBUG := -Wa,-g
 
 # turn jbsr into jsr for m68k
 ifeq ($(ARCH),m68k)
-- 
1.4.1.1





More information about the U-Boot mailing list