VirtualBox

Changeset 81718 in vbox


Ignore:
Timestamp:
Nov 6, 2019 4:21:26 PM (5 years ago)
Author:
vboxsync
Message:

EFI/Firmware/OvmfPkgIa32.dsc: Get source debugging working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgIa32.dsc

    r81604 r81718  
    7474  GCC:*_*_*_CC_FLAGS                   = -mno-mmx -mno-sse
    7575!endif
     76!ifdef $(SOURCE_DEBUG_ENABLE)
     77  MSFT:*_*_IA32_GENFW_FLAGS  = --keepexceptiontable
     78  GCC:*_*_IA32_GENFW_FLAGS   = --keepexceptiontable
     79  INTEL:*_*_IA32_GENFW_FLAGS = --keepexceptiontable
     80!endif
    7681
    7782  #
     
    97102   MSFT:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
    98103  INTEL:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
     104!ifdef $(SOURCE_DEBUG_ENABLE)
     105  # Get much better source-level debugging
     106    GCC:DEBUG_*_*_CC_FLAGS =     -DVBOX_SOURCE_DEBUG_ENABLE
     107   MSFT:DEBUG_*_*_CC_FLAGS = /Od -DVBOX_SOURCE_DEBUG_ENABLE
     108  INTEL:DEBUG_*_*_CC_FLAGS =     -DVBOX_SOURCE_DEBUG_ENABLE
     109!endif
     110
    99111[BuildOptions.X64]
    100112    GCC:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
     
    255267  ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
    256268  ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
    257 !ifdef $(VBOX)
    258269!ifdef $(SOURCE_DEBUG_ENABLE)
    259270  DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
    260 !endif
    261271!endif
    262272  HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
     
    283293  PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
    284294!else
     295  PeCoffLib|VBoxPkg/Library/VBoxPeCoffLib/VBoxPeCoffLib.inf
    285296  DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
    286   PeCoffLib|VBoxPkg/Library/VBoxPeCoffLib/VBoxPeCoffLib.inf
    287297!endif
    288298
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette