From: DENX Support System Date: Fri, 31 Mar 2006 23:50:12 +0200 Subject: [DNX#2006033142000301] [U-Boot-Users] [PATCH] - request to change default [...] Message-ID: <1143841812.573228.419769359@castor.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello list, inside the automatic U-Boot patch tracking system a new ticket [DNX#2006033142000301] was created: > 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. > > Signed-off-by: Jason Wessel > > diff --git a/config.mk b/config.mk > --- a/config.mk > +++ b/config.mk > @@ -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) > > > ------------------------------------------------------- > 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 Your U-Boot support team