AVR32: Use -g instead of -gstab s in AFLAGS_DEBUG
PATCH 1/6 AVR32: Use -g instead of -gstab s in AFLAGS_DEBUG
Quoted 11 lines
Quoted 6 lines
Quoted 6 lines
This patch replaces -gstabs with -g when compiling for AVR32, so that the default debugging format is used. Ulf Samuelsson reported problems on ARM when changing this unconditionally, so this patch has been updated to only change AVR32.
Oops. I missed this.
Quoted 1 line
Previous identical patch already applied.
Quoted 7 lines
Not 100% identical...this one only makes a difference on AVR32, while the other one changes everyone to use -g. Ulf reported build problems on ARM with the other patch, so I made it conditional.
Sure you don't want this patch instead of the other one?
I'm not sure. Which sort of problems was this exactly? >Whic boards /
platforms, and which toolchains?
Crosstool-0.42
generic-arm
gcc-3.4.6-softfloat
binutils 2.16.1
glibc-2.3.5
(IIRC)
Refused to compile when
-gstabs was changed to -g
board=at91rm9200df
which is a pure dataflash
version of at91rm9200dk
and is not part of the main tree.
I believe that at91rm9200dk
should exhibit the same
problem
Best regards,
Wolfgang Denk
Best Regards,
Ulf Samuelsson
ulf at atmel.com
+46706224457
PATCH 1/6 AVR32: Use -g instead of -gstab s in AFLAGS_DEBUG
Dear Ulf,
Quoted 11 lines · in message <[email protected]> you wrote:
Quoted 2 lines
I'm not sure. Which sort of problems was this exactly? >Whic boards /
platforms, and which toolchains?
Crosstool-0.42
generic-arm
gcc-3.4.6-softfloat
binutils 2.16.1
glibc-2.3.5
(IIRC)
Quoted 2 lines
Refused to compile when
-gstabs was changed to -g
Can this toolchain compile any source file using somthing like this:
${CROSS_COMPILE}gcc -g -c foo.c?
If this is the same problem as previously reported by Matthew, I tend to blame it on the toolchain...
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
Winners never talk about glorious victories. That's because they're
the ones who see what the battlefield looks like afterwards. It's
only the losers who have glorious victories.
- Terry Pratchett, _Small Gods_PATCH 1/6 AVR32: Use -g instead of -gstab s in AFLAGS_DEBUG
Quoted 14 lines
Dear Ulf,
Quoted 11 lines · in message <[email protected]> you wrote:
Quoted 2 lines
I'm not sure. Which sort of problems was this exactly? >Whic boards /
platforms, and which toolchains?
Crosstool-0.42
generic-arm
gcc-3.4.6-softfloat
binutils 2.16.1
glibc-2.3.5
(IIRC)
Quoted 8 lines
Quoted 2 lines
Refused to compile when
-gstabs was changed to -gCan this toolchain compile any source file using somthing like this:
${CROSS_COMPILE}gcc -g -c
foo.c?
Yes, it is only when the gcc driver calls the assembler that the AFLAGS gets used and the arm assembler apparently requires that you qualify "-g" with "stabs" .
Maybe a better idea for patch is to override "stabs"
pseudo code:
if ! defined(DEBUG_FORMAT)
DEBUG_FORMAT=stabs
end if
AFLAGS="-w,g$(DEBUG_FORMAT)"
Quoted 3 lines
If this is the same problem as previously reported by Matthew, I tend to blame it on the toolchain...
Best Regards
Ulf Samuelsson