Skip to contentSkip to conversation

- request to change default [...]

PATCH New DENX Support System 1 participant 1 message Mar 31, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 - request to change default [...]

Hello list,

inside the automatic U-Boot patch tracking system a new ticket [DNX#2006033142000301] was created:

<snip>

Quoted 28 lines

The default for the C portion of the u-boot compile is set to dwarf-2 because the -g option for gcc 3.x defaults to dwarf-2, but the assembly portion is not.

If possible, I would like to see the debug formats made consistent so as to allow the debugger to more reliably step through assembly source with gdb and other debuggers with the more modern dwarf2 debug format. I have tested this change with gcc 3.4.3 on Arm9, MPC82xx, PPC85xx, PPC 40x and PPC 44x. I also tested with ELDK 3.1.1 on all the PPC archs and it works quite well.

config.mk +1 -1
@@ -133,7 +133,7 @@ CFLAGS := $(CPPFLAGS) -Wall -Wno-trigrap
 endif
 endif
 
-AFLAGS_DEBUG := -Wa,-gstabs
+AFLAGS_DEBUG := -Wa,-gdwarf2
 AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS)
 
 LDFLAGS += -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE)

$(PLATFORM_LDFLAGS)

Quoted 12 lines

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

</snip>

Your U-Boot support team