From nobody Wed Feb 28 16:37:47 2024 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TlKll0F7Bz5BtY9 for ; Wed, 28 Feb 2024 16:37:55 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TlKlj53xjz41hb; Wed, 28 Feb 2024 16:37:53 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Authentication-Results: mx1.freebsd.org; none Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 1775C3C019A; Wed, 28 Feb 2024 16:37:47 +0000 (UTC) Date: Wed, 28 Feb 2024 16:37:47 +0000 From: Brooks Davis To: Alexander Richardson Cc: Brooks Davis , Mark Millard , FreeBSD Toolchain Subject: Re: system clang's -debugger-tuning setting: Is the default gdb setting intended? Message-ID: References: List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US] X-Rspamd-Queue-Id: 4TlKlj53xjz41hb On Tue, Feb 27, 2024 at 10:47:31PM -0800, Alexander Richardson wrote: > On Wed, 21 Feb 2024, 08:43 Brooks Davis, 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 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. 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. -- Brooks