Project

General

Profile

Bug #6348 ยป 0001-6348-source-level-debugging-not-quite-working.patch

Possible fix/work-around - Gordon Ross, 2021-04-17 04:00 PM

View differences:

usr/src/Makefile.master
553 553
i386_ASFLAGS=	$(i386_AS_XARCH)
554 554
amd64_ASFLAGS=	$(amd64_AS_XARCH)
555 555

  
556
# dmake SOURCEDEBUG=yes ... enables source-level debugging information, and
557
# avoids stripping it.
558
SOURCEDEBUG	= $(POUND_SIGN)
559
SRCDBGBLD	= $(SOURCEDEBUG:yes=)
560

  
556 561
#
557 562
sparc_COPTFLAG=		-xO3
558 563
sparcv9_COPTFLAG=	-xO3
......
562 567
COPTFLAG= $($(MACH)_COPTFLAG)
563 568
COPTFLAG64= $($(MACH64)_COPTFLAG)
564 569

  
570
# Don't optimize when debugging
571
$(SRCDBGBLD)COPTFLAG=
572
$(SRCDBGBLD)COPTFLAG64=
573

  
565 574
# When -g is used, the compiler globalizes static objects
566 575
# (gives them a unique prefix). Disable that.
567 576
CNOGLOBAL= -W0,-noglobal
......
651 660
XREGSFLAG		= $($(MACH)_XREGSFLAG)
652 661
XREGSFLAG64		= $($(MACH64)_XREGSFLAG)
653 662

  
654
# dmake SOURCEDEBUG=yes ... enables source-level debugging information, and
655
# avoids stripping it.
656
SOURCEDEBUG	= $(POUND_SIGN)
657
SRCDBGBLD	= $(SOURCEDEBUG:yes=)
658

  
659 663
#
660 664
# These variables are intended ONLY for use by developers to safely pass extra
661 665
# flags to the compilers without unintentionally overriding Makefile-set
    (1-1/1)