Skip to content

Commit 908acb5

Browse files
mingqiangchiwenlingz
authored andcommitted
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 <mingqiang.chi@intel.com>
1 parent 9bb16bc commit 908acb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypervisor/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ endif
236236

237237
C_OBJS := $(patsubst %.c,$(HV_OBJDIR)/%.o,$(C_SRCS))
238238
ifneq ($(CONFIG_RELEASE),y)
239-
CFLAGS += -DHV_DEBUG -DPROFILING_ON
239+
CFLAGS += -DHV_DEBUG -DPROFILING_ON -fno-omit-frame-pointer
240240
endif
241241
S_OBJS := $(patsubst %.S,$(HV_OBJDIR)/%.o,$(S_SRCS))
242242

0 commit comments

Comments
 (0)