Re: system clang's -debugger-tuning setting: Is the default gdb setting intended?

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 16:49:30 UTC
On 21 Feb 2024, at 16:43, Brooks Davis <brooks@freebsd.org> wrote:
> 
> On Tue, Feb 20, 2024 at 05:54:25PM -0800, Mark Millard wrote:
>> [Curiosity, not an objection.]
>> 
>> It appears that most likely all FreeBSD platforms get the gdb
>> setting by default . . .
> 
> 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.

I hadn’t realised that was the default, but I guess that explains why my debugging experience is worse on FreeBSD than on macOS, even though they both ship the same compiler and debugger.

I would assume that anyone who installs a debugger from ports can change the default.

I’m also curious about the ‘most developers’, since lldb is the default debugger for both iOS and Android, and neither lldb nor gdb are the default on Windows), so of the three biggest platforms two use lldb and zero use gdb.  Even among FreeBSD developers, I’m not sure that the majority are installing a GNU component from ports when there’s a debugger that *doesn’t* forget your command history across invocations right there in the base system.

David