From owner-freebsd-toolchain@freebsd.org Mon Jul 27 19:28:38 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7995E36D0DF for ; Mon, 27 Jul 2020 19:28:38 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BFqbp1VJmz4FjJ for ; Mon, 27 Jul 2020 19:28:38 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Received: by mailman.nyi.freebsd.org (Postfix) id 3345636D0DE; Mon, 27 Jul 2020 19:28:38 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 32FE236D0DD for ; Mon, 27 Jul 2020 19:28:38 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BFqbn0Yfhz4Fg7 for ; Mon, 27 Jul 2020 19:28:36 +0000 (UTC) (envelope-from pjfloyd@wanadoo.fr) Received: from garrigue.home ([2.7.112.8]) by mwinf5d82 with ME id 8KUa230080AvN5u03KUa5q; Mon, 27 Jul 2020 21:28:34 +0200 X-ME-Helo: garrigue.home X-ME-Auth: cGpmbG95ZEB3YW5hZG9vLmZy X-ME-Date: Mon, 27 Jul 2020 21:28:34 +0200 X-ME-IP: 2.7.112.8 From: Paul Floyd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Getting started with clang debuginfo Date: Mon, 27 Jul 2020 21:28:31 +0200 References: <1139268534.2282.1595842060133.JavaMail.www@wwinf1m22> <20200727143753.GA59953@raichu> To: toolchain@freebsd.org In-Reply-To: <20200727143753.GA59953@raichu> Message-Id: <9068E247-2FCA-4CCD-86E0-F715C0057EED@wanadoo.fr> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 4BFqbn0Yfhz4Fg7 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of pjfloyd@wanadoo.fr has no SPF policy when checking 80.12.242.128) smtp.mailfrom=pjfloyd@wanadoo.fr X-Spamd-Result: default: False [4.03 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[wanadoo.fr]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[wanadoo.fr]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RECEIVED_SPAMHAUS_PBL(0.00)[2.7.112.8:received]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_MEDIUM(0.84)[0.845]; NEURAL_SPAM_LONG(0.93)[0.925]; RCVD_IN_DNSWL_NONE(0.00)[80.12.242.128:from]; NEURAL_SPAM_SHORT(0.86)[0.860]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3215, ipnet:80.12.240.0/20, country:FR]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[wanadoo.fr]; RWL_MAILSPIKE_POSSIBLE(0.00)[80.12.242.128:from] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2020 19:28:38 -0000 > On 27 Jul 2020, at 16:37, Mark Johnston wrote: >=20 > On Mon, Jul 27, 2020 at 11:27:40AM +0200, Paul FLOYD wrote: >> Hi >> =20 >> I'm investigating some of the remaining issues with Valgrind on = FreeBSD. One of the two remaining major issues that I'm aware of is with = Valgrind reading dwarf debuginfo from clang compiled binaries. The = problem isn't too bad with clang 8 on FreeBSD 12.1. On 13-CURRENT with = clang 10 things are noticeably worse. For GCC built binaries I'm not = aware of any issues. >> =20 >> I'm not familiar (yet) with the debuginfo code in Valgrind. >> =20 >> To get me going, does anyone have any pointers to >> - documentation on clang debuginfo >> - any info on differences wrt GCC (I have seen that GCC does have = some debuginfo extensions) >> - any tools that would be useful like ascii dumps >=20 > Are you asking about tools to dump DWARF info? I've used dwarfdump > (from ports) quite a bit in the past. readelf -w is similar and > available in the base system. Hi Mark Yes, I=E2=80=99m trying to start working out where there are differences Clang 8 vs clang 10 vs just about any GCC I=E2=80=99d already seen readelf, but I hadn=E2=80=99t installed = dwarfdump. I just had a look at one example, there=E2=80=99s a bit less info in the = clang generated file, but otherwise it looks OK. Next I=E2=80=99ll try comparing a problem clang 10 binary with a clang 8 = one. A+ Paul