Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2024 10:16:22 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Brooks Davis <brooks@freebsd.org>
Cc:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   Re: system clang's -debugger-tuning setting: Is the default gdb setting intended?
Message-ID:  <9B916C6A-6BEB-43FB-A4A4-E29130212DD8@yahoo.com>
In-Reply-To: <Zd9hW3ISuEB2uBYF@spindle.one-eyed-alien.net>
References:  <F50B9D9E-2602-4737-B11E-E14C9DEE89A9.ref@yahoo.com> <F50B9D9E-2602-4737-B11E-E14C9DEE89A9@yahoo.com> <ZdYoJlN7azuNin0b@spindle.one-eyed-alien.net> <CA%2BZ_v8pfujYoBpiyv7pemmhirqYY9pgNU7p=e4JiRtDqFALVGg@mail.gmail.com> <Zd9hW3ISuEB2uBYF@spindle.one-eyed-alien.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 28, 2024, at 08:37, Brooks Davis <brooks@freebsd.org> wrote:
>=20
> On Tue, Feb 27, 2024 at 10:47:31PM -0800, Alexander Richardson wrote:
>> On Wed, 21 Feb 2024, 08:43 Brooks Davis, <brooks@freebsd.org> wrote:
>>=20
>>> On Tue, Feb 20, 2024 at 05:54:25PM -0800, Mark Millard wrote:
>>>> [Curiosity, not an objection.]
>>>>=20
>>>> It appears that most likely all FreeBSD platforms get the gdb
>>>> setting by default . . .
>>>=20
>>> I'm not sure we've thought about it much, but gdb is almost =
certainly
>>> the right default tuning since it's what most developers are =
accustom
>>> to.
>>=20
>> I think there is also an argument to default to lldb tuning. Just =
last week
>> I discovered that lldb is unable to resolve debug information for =
types
>> defined in other shared libraries, so you really need to build with =
-glldb
>> or -fstandalone-debug to get any support for e.g. standard library =
types (
>> =
https://github.com/llvm/llvm-project/issues/60994#issuecomment-1447337360)=
.
>> The downside is that the resulting binaries are bigger so it depends =
on how
>> important lldb support is.
>=20
> I guess we should look at how gdb does with lldb tuned debugging bits.
> It's certainly possible that the gdb tuning has just plain rotted and
> the gdb experience would be better with lldb turning.
>=20

Another question might be if src.conf or make.conf should have an
explicit control over which tuning is used --plus a default choice
for when it is not explicitly set.


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9B916C6A-6BEB-43FB-A4A4-E29130212DD8>