[U-Boot] [PATCH] config.mk:Update DBGFLAGS with dwarf information
Prabhakar Kushwaha
prabhakar at freescale.com
Wed Feb 15 09:55:31 CET 2012
Built u-boot elf file does not contain any dwarf informations by default. This
information is required for debugging.
Add dwarf ver 2 flag in DBGFLAGS.
Signed-off-by: Radu Lazarescu <radu.lazarescu at freescale.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar at freescale.com>
---
Applies on http://git.denx.de/u-boot.git branch master
config.mk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/config.mk b/config.mk
index ddaa477..11bc20d 100644
--- a/config.mk
+++ b/config.mk
@@ -178,7 +178,7 @@ endif
# who are porting old code to latest mainline but not updating $(AR).
ARFLAGS = $(error update your Makefile to use cmd_link_o_target and not AR)
RELFLAGS= $(PLATFORM_RELFLAGS)
-DBGFLAGS= -g # -DDEBUG
+DBGFLAGS= -g -gdwarf-2 # -DDEBUG
OPTFLAGS= -Os #-fomit-frame-pointer
OBJCFLAGS += --gap-fill=0xff
--
1.7.5.4
More information about the U-Boot
mailing list