On Sat, Jun 13, 2020 at 5:28 AM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote: > > On Sat, Jun 13, 2020 at 4:17 AM Sedat Dilek <sedat.dilek@xxxxxxxxx> wrote: > > > > Hi Masahiro, > > > > when I build with LLVM_IAS=1 I want to force DWARF-4. > > > > CONFIG_DEBUG_INFO_DWARF4=y sets "DEBUG_CFLAGS += -gdwarf-4". > > > > I tried: > > > > [ Makefile ] > > > > ifdef CONFIG_DEBUG_INFO > > ifdef CONFIG_DEBUG_INFO_SPLIT > > DEBUG_CFLAGS += -gsplit-dwarf > > else > > DEBUG_CFLAGS += -g > > endif > > ifndef LLVM_IAS > > KBUILD_AFLAGS += -Wa,-gdwarf-2 > > endif > > endif > > ifdef CONFIG_DEBUG_INFO_DWARF4 > > DEBUG_CFLAGS += -gdwarf-4 > > ifdef LLVM_IAS > > KBUILD_AFLAGS += -Wa,-gdwarf-4 > > endif > > endif > > > > If I set LLVM_IAS=1 ---> CONFIG_DEBUG_INFO_DWARF4=y shall be set automatically. > > > > Dunno if "KBUILD_AFLAGS += -Wa,-gdwarf-4" is a good idea. > > > > "KBUILD_AFLAGS += -Wa,-gdwarf-2" is known to break with LLVM_IAS=1. > > > > I am lost in ifdef-eries... > > > > Any cool ideas? > > > Sorry, I am not familiar enough with dwarf > to understand these flags... > Hi Masahiro, Thanks for your precious time and to be so honest. Regards, - Sedat -