You are not logged in.

#1 2026-04-08 14:04:36

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,907

Debug symbols with -gsplit-dwarf better then with -gn ?

Oolite (opensource remake of Elite) devs & users are discussing how to improve debugging options in https://github.com/OoliteProject/oolite/issues/586

One of the options mentioned is using -gsplit-dwarf to create .dwo files which will then be combined into .dwp files.
gcc, llvm/clang,  gdb, lldb and debuginfo.d  appear to support both dbg & dwp formats.

What do you see as pro & cons of these methods ?

Could archlinux packages be build with -gsplit-dwarf or would that require changes in pacman/makepkg ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#2 2026-04-16 12:09:39

ReDress
Member
From: Nairobi
Registered: 2024-11-30
Posts: 243

Re: Debug symbols with -gsplit-dwarf better then with -gn ?

Lone_Wolf wrote:

What do you see as pro & cons of these methods ?


Cloud effort

Offline

#3 2026-04-16 13:58:16

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 576

Re: Debug symbols with -gsplit-dwarf better then with -gn ?

It's not clear why format of debug symbols is chosen by upstream. I think build system should be able to generate any format that compiler support, so user or downstream can configure it with compiler options while compiling or building a package.

Offline

Board footer

Powered by FluxBB