From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71292: 30.0.50; macOS: .elns have no debug info Date: Sat, 01 Jun 2024 09:36:25 +0300 Message-ID: <861q5hp3ti.fsf@gnu.org> References: <86le3qour9.fsf@gnu.org> <86frtxq2ih.fsf@gnu.org> <86a5k5q1c8.fsf@gnu.org> <868qzppzt6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71292@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 01 08:37:15 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sDIMc-00077w-OX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jun 2024 08:37:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDIMH-0007gE-F6; Sat, 01 Jun 2024 02:36:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sDIMF-0007g0-UZ for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 02:36:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sDIMF-0003oe-KB for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 02:36:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sDIMQ-00018C-GA for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 02:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jun 2024 06:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71292 X-GNU-PR-Package: emacs Original-Received: via spool by 71292-submit@debbugs.gnu.org id=B71292.17172238114332 (code B ref 71292); Sat, 01 Jun 2024 06:37:02 +0000 Original-Received: (at 71292) by debbugs.gnu.org; 1 Jun 2024 06:36:51 +0000 Original-Received: from localhost ([127.0.0.1]:55689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDIME-00017m-Ml for submit@debbugs.gnu.org; Sat, 01 Jun 2024 02:36:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDIM9-00017X-2V for 71292@debbugs.gnu.org; Sat, 01 Jun 2024 02:36:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sDILs-0003mH-3J; Sat, 01 Jun 2024 02:36:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=8O5RKQITXKvnRMsJ0PkEr2lBlw8hanMGj1RY9N9NlQQ=; b=p4366/r18taRACBTxvcM dzFA/LG/3tU5+aseBm357r81z4fkVC+fNo0YeY1wbFeVYhtwEs7MYHIvTVQhU9PioDhOhUKV36ltM Z+nhjUOsqKuMbxfFzcv3k+2GOC5Xzbsd12r6kIxRTZyAiY1VePUXhUXQ4qJqCT2Pdwe84wd4HqB9s JF0vaHnIVAJdgGul9TEe0X38BwzgyUzDCYv2xkOX0+X3EOO4U4K3n7C/pSUJQQNecke73F+pEvyBd Mi9Bcggbpu4z+AY31bAGcatCaYaj2bQx49cElnQSUdRQs6ops9VA7p6jM+4Tq2APTPCN+tGP2zFdA CWxU8iXCpuV74w==; In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Sat, 01 Jun 2024 08:15:39 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286317 Archived-At: > From: Gerd Möllmann > Cc: 71292@debbugs.gnu.org > Date: Sat, 01 Jun 2024 08:15:39 +0200 > > When debugging a native-compiled function (speed = 1) an macOS/arm64, I > find that the debug info that libgccjit 14.1 generates is apparently > incorrect. > > For example, I see car_safe being called with some argument, but when I > look in the caller in the generated C file and print what it purportedly > passes as an argumebnt, it's something completely different. This should be reported to the GCC and libgccjit folks. The most probable cause is incorrect DWARF debug info emitted by the compiler. Alternatively, it could be that LLDB interprets the debug info incorrectly. I sometimes see similar problems when debugging Emacs, especially in optimized versions: arguments in function calls are shown in reverse order, which of course is bogus, since the code works as expected.