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

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@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)

In message 20060830153410.47550107@cad-250-152.norway.atmel.com you wrote:
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.
Applied, thanks.
Best regards,
Wolfgang Denk
participants (2)
-
Haavard Skinnemoen
-
Wolfgang Denk