Use -ggdb3 option for more detailed debug info

This commit is contained in:
Thomas Jensen 2023-12-24 14:09:03 +01:00
parent 0eb8272e9b
commit 297a6ef959
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB

View File

@ -55,13 +55,13 @@ static: flags_$(BOXES_PLATFORM) | $(OUT_DIR)
cov: flags_$(BOXES_PLATFORM) | $(OUT_DIR)
$(MAKE) -C $(OUT_DIR) -f $(SRC_DIR)/Makefile BOXES_PLATFORM=$(BOXES_PLATFORM) ALL_OBJ="$(ALL_OBJ)" STRIP=false \
CFLAGS_ADDTL="-g --coverage $(CFLAGS_ADDTL)" \
CFLAGS_ADDTL="--coverage $(CFLAGS_ADDTL)" \
LDFLAGS_ADDTL="--coverage $(LDFLAGS_ADDTL)" \
flags_$(BOXES_PLATFORM) $(BOXES_EXECUTABLE_NAME)
debug: flags_$(BOXES_PLATFORM) | $(OUT_DIR)
$(MAKE) -C $(OUT_DIR) -f $(SRC_DIR)/Makefile BOXES_PLATFORM=$(BOXES_PLATFORM) ALL_OBJ="$(ALL_OBJ)" STRIP=false \
CFLAGS_ADDTL="-g $(CFLAGS_ADDTL)" flags_$(BOXES_PLATFORM) $(BOXES_EXECUTABLE_NAME)
CFLAGS_ADDTL="-ggdb3 $(CFLAGS_ADDTL)" flags_$(BOXES_PLATFORM) $(BOXES_EXECUTABLE_NAME)
boxes: $(ALL_OBJ) | check_dir
$(CC) $(LDFLAGS) $^ -o $@ -lunistring -lpcre2-32 -lncurses