git: contrib/gcc-12: Patch options to use DWARF v4 by default
Aaron LI
aly at crater.dragonflybsd.org
Thu Mar 26 23:34:25 PDT 2026
commit 822cc51e1e618fc7c7092648a12f69846972996b
Author: Aaron LI <aly at aaronly.me>
Date: Mon Sep 29 21:48:55 2025 +0800
contrib/gcc-12: Patch options to use DWARF v4 by default
Because our GDB in base is 7.6 and is too old to read the DWARF v5 that
is used by GCC 12.5 by default. In addition, there is no longer a
configure option to override the default DWARF version. Therefore, we
decided to patch the GCC source code.
We could tweak the world/kernel makefiles to add the
'-gdwarf-4 -gstrict-dwarf' options, but that couldn't solve the issue
that a user cannot use the base GDB to debug one's own binary built
outside the world/kernel.
Discussed-with: swildner
Summary of changes:
contrib/gcc-12/README.DRAGONFLY | 1 +
contrib/gcc-12/gcc/common.opt | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/822cc51e1e618fc7c7092648a12f69846972996b
--
DragonFly BSD source repository
More information about the Commits
mailing list