6829575: 100028: Debug information is incomplete or missing
Enable debugging in many places Reviewed-by: ohair
This commit is contained in:
parent
21694f8b3f
commit
0d75be20c1
@ -165,6 +165,12 @@ ifeq ($(FASTDEBUG), true)
|
||||
endif
|
||||
endif
|
||||
|
||||
# DEBUG_BINARIES overrides everything, use full -g debug information
|
||||
ifeq ($(DEBUG_BINARIES), true)
|
||||
DEBUG_FLAG = -g
|
||||
CFLAGS_REQUIRED += $(DEBUG_FLAG)
|
||||
endif
|
||||
|
||||
CFLAGS_OPT = $(CC_OPT)
|
||||
CFLAGS_DBG = $(DEBUG_FLAG)
|
||||
CFLAGS_COMMON += $(CFLAGS_REQUIRED)
|
||||
@ -240,8 +246,11 @@ AUTOMATIC_PCH_OPTION =
|
||||
#
|
||||
ifeq ($(VARIANT), OPT)
|
||||
ifneq ($(NO_STRIP), true)
|
||||
# Debug 'strip -g' leaves local function Elf symbols (better stack traces)
|
||||
POST_STRIP_PROCESS = $(STRIP) -g
|
||||
ifneq ($(DEBUG_BINARIES), true)
|
||||
# Debug 'strip -g' leaves local function Elf symbols (better stack
|
||||
# traces)
|
||||
POST_STRIP_PROCESS = $(STRIP) -g
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -108,7 +108,9 @@ vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/robot_child
|
||||
#
|
||||
|
||||
|
||||
#CFLAGS += -g
|
||||
ifeq ($(DEBUG_BINARIES), true)
|
||||
CFLAGS += -g
|
||||
endif
|
||||
ifeq ($(HEADLESS),true)
|
||||
CFLAGS += -DHEADLESS=$(HEADLESS)
|
||||
CPPFLAGS += -DHEADLESS=$(HEADLESS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user