Date: Tue, 27 Feb 2024 22:47:31 -0800 From: Alexander Richardson <arichardson@freebsd.org> To: Brooks Davis <brooks@freebsd.org> Cc: Mark Millard <marklmi@yahoo.com>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: Re: system clang's -debugger-tuning setting: Is the default gdb setting intended? Message-ID: <CA%2BZ_v8pfujYoBpiyv7pemmhirqYY9pgNU7p=e4JiRtDqFALVGg@mail.gmail.com> In-Reply-To: <ZdYoJlN7azuNin0b@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>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000f09de306126b84b4 Content-Type: text/plain; charset="UTF-8" On Wed, 21 Feb 2024, 08: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. > > -- Brooks > > 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. Alex --000000000000f09de306126b84b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Wed, 21 Feb 2024, 08:43 Brooks Davis, <<a href= =3D"mailto:brooks@freebsd.org">brooks@freebsd.org</a>> wrote:<br></div><= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">On Tue, Feb 20, 2024 at 05:54:25PM -0800, Mar= k Millard wrote:<br> > [Curiosity, not an objection.]<br> > <br> > It appears that most likely all FreeBSD platforms get the gdb<br> > setting by default . . .<br> <br> I'm not sure we've thought about it much, but gdb is almost certain= ly<br> the right default tuning since it's what most developers are accustom<b= r> to.<br> <br> -- Brooks<br></blockquote><blockquote class=3D"gmail_quote" style=3D"margin= :0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote><= /div></div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir= =3D"auto">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 fo= r 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 (<a href=3D"https://github.com/llvm/llvm-project/issues/60994#issueco= mment-1447337360">https://github.com/llvm/llvm-project/issues/60994#issueco= mment-1447337360</a>). The downside is that the resulting binaries are bigg= er so it depends on how important lldb support is.</div><div dir=3D"auto"><= br></div><div dir=3D"auto">Alex=C2=A0</div><div dir=3D"auto"></div></div> --000000000000f09de306126b84b4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BZ_v8pfujYoBpiyv7pemmhirqYY9pgNU7p=e4JiRtDqFALVGg>