common: Compile with debugging symbols on.
authorTim 'mithro' Ansell <mithro@mithis.com>
Mon, 25 Sep 2017 19:33:58 +0000 (05:33 +1000)
committerTim 'mithro' Ansell <mithro@mithis.com>
Fri, 6 Oct 2017 09:38:44 +0000 (20:38 +1100)
Debugging symbols are useful when using GDB :-)

litex/soc/software/common.mak

index 7ef85aae7acb9e4769e5021a93ee1e149df1a8c4..11e8fc3855e2cf853bc622ea2946edfd4308fd53 100644 (file)
@@ -42,7 +42,7 @@ DEPFLAGS += -MD -MP
 # Toolchain options
 #
 INCLUDES = -I$(SOC_DIRECTORY)/software/include/base -I$(SOC_DIRECTORY)/software/include -I$(SOC_DIRECTORY)/common -I$(BUILDINC_DIRECTORY)
-COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -fomit-frame-pointer -Wall -fno-builtin -nostdinc $(INCLUDES)
+COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -nostdinc $(INCLUDES)
 CFLAGS = $(COMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
 CXXFLAGS = $(COMMONFLAGS) -std=c++11 -I$(SOC_DIRECTORY)/software/include/basec++ -fexceptions -fno-rtti -ffreestanding
 LDFLAGS = -nostdlib -nodefaultlibs -L$(BUILDINC_DIRECTORY)