Skip to content

Commit 5f7df79

Browse files
committed
fix: use -g -gcodeview
1 parent a297638 commit 5f7df79

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lldb/packages/Python/lldbsuite/test/builders/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _getDebugInfoArgs(self, debug_info):
258258
"gmodules": {"MAKE_DSYM": "NO", "MAKE_GMODULES": "YES"},
259259
"debug_names": {"MAKE_DEBUG_NAMES": "YES"},
260260
"dwp": {"MAKE_DSYM": "NO", "MAKE_DWP": "YES"},
261-
"pdb": {"DEBUG_INFO_FLAG": "-g"},
261+
"pdb": {"MAKE_PDB": "YES"},
262262
}
263263

264264
# Collect all flags, with later options overriding earlier ones

lldb/packages/Python/lldbsuite/test/make/Makefile.rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ ifeq ($(CC_TYPE), clang)
249249
MODULE_DEBUG_INFO_FLAGS += -gmodules
250250
endif
251251

252+
ifeq "$(MAKE_PDB)" "YES"
253+
DEBUG_INFO_FLAG ?= -g -gcodeview
254+
endif
255+
252256
# If the OS is Windows, we need to pass -gdwarf to clang, otherwise it will build
253257
# with codeview by default but all the tests rely on dwarf.
254258
ifeq "$(OS)" "Windows_NT"

0 commit comments

Comments
 (0)