Use -g instead of -gstabs in AFLAGS_DEBUG
PATCH 1/1 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.
--- config.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
config.mk +1 -1
@@ -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)
Signature · 1 line
1.4.1.1
Wolfgang Denk
AppliedPATCH 1/1 Use -g instead of -gstabs in AFLAGS_DEBUG
Quoted 8 lines · In message <[email protected]> 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
Signature · 6 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de ... The things love can drive a man to -- the ecstasies, the mise- ries, the broken rules, the desperate chances, the glorious failures and the glorious victories. -- McCoy, "Requiem for Methuselah", stardate 5843.7