From nobody Wed Feb 28 06:47:31 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 4Tl4fn3kLWz5CmrV for ; Wed, 28 Feb 2024 06:47:45 +0000 (UTC) (envelope-from arichardson.kde@gmail.com) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tl4fm3TkGz41j1; Wed, 28 Feb 2024 06:47:44 +0000 (UTC) (envelope-from arichardson.kde@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of arichardson.kde@gmail.com designates 209.85.210.176 as permitted sender) smtp.mailfrom=arichardson.kde@gmail.com Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6e53f3f1f82so1861063b3a.2; Tue, 27 Feb 2024 22:47:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709102862; x=1709707662; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KBburWST92Frbqji26sa6RLgpNoxHj768D+mDS8v9uA=; b=oYg7qX4+svHLTv0nV+G1KPlOXNO+jJ+rnDnI8UBKa1JkNPfo4Txkc167WEImWRxby5 QLd8a6Z0dEVcSOIqL0Vz1jc1+wMvwgdGtOer+4G0Z6JvFRNfFp5nYVtLMIs95x2FFChW M25z22nIviiG5WyE+uNvVqz6ibDm1/okmlQD1UZUwfH0f5dJdFRnmnWMgB5Z7cq8CGxX AaAZkPsAkm9cJtq/07TQ+hi9we6l30bAPdrS2sqVQR6+wGG33+RA4lrzze9eKtlZiB+n doWGJT4nrdfIEwGOWwMM77YRoygiMUxnNhpQ3fLg6D0O3TtC77wiK29+RfMnV54Zqh6F 9ocg== X-Forwarded-Encrypted: i=1; AJvYcCXmP3xHB8jL1broJEioHX3tG1Z4PeRuIankrho3UKclRp49WqAdI2LD6IK+NXZtPu6FGRhqmaavlxOgohCD0i4+cUkIZ8Ez+rx9VjbOug== X-Gm-Message-State: AOJu0YxUEwWGElCTAfAqVP7e5MGWu5Kxop85DrrgcXJ58fGif1UEBfXH fZYJfvW1DTHd4bzRV2G2OOzAYqAG24cTmuUUOtnFLzKsMV9YcfuOJrB0Wy0p X-Google-Smtp-Source: AGHT+IEX6Z0EAVE+1MaW4QgTfG45cM+pW0Zz0drOeGjZD+mfKPDz5ULM7VeZOplLPcSal4PDO4DN4Q== X-Received: by 2002:a05:6a20:d704:b0:19e:c3a1:238d with SMTP id iz4-20020a056a20d70400b0019ec3a1238dmr5007437pzb.52.1709102862142; Tue, 27 Feb 2024 22:47:42 -0800 (PST) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com. [209.85.215.170]) by smtp.gmail.com with ESMTPSA id v6-20020a170903238600b001d92a58330csm2563751plh.145.2024.02.27.22.47.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Feb 2024 22:47:41 -0800 (PST) Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-5ce07cf1e5dso4138930a12.2; Tue, 27 Feb 2024 22:47:41 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVeXN73skH6q2s/7kb8qZpuXZnI0zp6qEz70RQSLOTv4tb6CnZg41hnlA5pL/518UIDW/tK8GpgjgOvo0UMEEUrUCQYmj7ii+Q1J16aUg== X-Received: by 2002:a17:90a:7408:b0:29a:575c:7d90 with SMTP id a8-20020a17090a740800b0029a575c7d90mr10149814pjg.9.1709102861416; Tue, 27 Feb 2024 22:47:41 -0800 (PST) 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 References: In-Reply-To: From: Alexander Richardson Date: Tue, 27 Feb 2024 22:47:31 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: system clang's -debugger-tuning setting: Is the default gdb setting intended? To: Brooks Davis Cc: Mark Millard , FreeBSD Toolchain Content-Type: multipart/alternative; boundary="000000000000f09de306126b84b4" X-Spamd-Bar: - X-Spamd-Result: default: False [-1.80 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.90)[-0.899]; FORGED_SENDER(0.30)[arichardson@freebsd.org,arichardsonkde@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TAGGED_FROM(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_CC(0.00)[yahoo.com,freebsd.org]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[arichardson@freebsd.org,arichardsonkde@gmail.com]; RCPT_COUNT_THREE(0.00)[3]; R_DKIM_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.210.176:from]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; RCVD_IN_DNSWL_NONE(0.00)[209.85.215.170:received,209.85.210.176:from] X-Rspamd-Queue-Id: 4Tl4fm3TkGz41j1 --000000000000f09de306126b84b4 Content-Type: text/plain; charset="UTF-8" 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. > > -- 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


On Wed, 21 Feb 2024, 08:43 Brooks Davis, <brooks@freebsd.org> wrote:
<= 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:
> [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 certain= ly
the right default tuning since it's what most developers are accustom to.

-- Brooks

<= /div>


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 (https://github.com/llvm/llvm-project/issues/60994#issueco= mment-1447337360). The downside is that the resulting binaries are bigg= er so it depends on how important lldb support is.
<= br>
Alex=C2=A0
--000000000000f09de306126b84b4--