From 908acb5000b2d2e3a2d6801097b2a8c949406443 Mon Sep 17 00:00:00 2001 From: Mingqiang Chi Date: Wed, 5 Dec 2018 12:55:22 +0800 Subject: [PATCH] hv: add 'no-omit-frame-pointer' in debug version Hypervisor uses '-O2' compiler option, it will omit frame pointer by default for '-O2', This patch add 'no-omit-frame-pointer' in debug version. Tracked-On: #1979 Signed-off-by: Mingqiang Chi --- hypervisor/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/Makefile b/hypervisor/Makefile index 455147775..bc68c15e8 100644 --- a/hypervisor/Makefile +++ b/hypervisor/Makefile @@ -236,7 +236,7 @@ endif C_OBJS := $(patsubst %.c,$(HV_OBJDIR)/%.o,$(C_SRCS)) ifneq ($(CONFIG_RELEASE),y) -CFLAGS += -DHV_DEBUG -DPROFILING_ON +CFLAGS += -DHV_DEBUG -DPROFILING_ON -fno-omit-frame-pointer endif S_OBJS := $(patsubst %.S,$(HV_OBJDIR)/%.o,$(S_SRCS))