From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#65455: 30.0.50; Disassemble: error with "free-standing" native compiled function Date: Sun, 27 Aug 2023 09:34:47 -0400 Message-ID: References: <83edjro1mm.fsf@gnu.org> <83bkevny24.fsf@gnu.org> <83a5ufnum6.fsf@gnu.org> <831qfrnpac.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20581"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: gerd.moellmann@gmail.com, 65455@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 27 15:36:08 2023 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 1qaFw0-00059a-JY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Aug 2023 15:36:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaFvv-00048O-GC; Sun, 27 Aug 2023 09:36:03 -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 1qaFvo-0003xr-P5 for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 09:35:56 -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 1qaFvo-0004u8-Cb for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 09:35:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaFvt-0000Sn-QU for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 09:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2023 13:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65455 X-GNU-PR-Package: emacs Original-Received: via spool by 65455-submit@debbugs.gnu.org id=B65455.16931433091702 (code B ref 65455); Sun, 27 Aug 2023 13:36:01 +0000 Original-Received: (at 65455) by debbugs.gnu.org; 27 Aug 2023 13:35:09 +0000 Original-Received: from localhost ([127.0.0.1]:44401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaFuz-0000RH-3M for submit@debbugs.gnu.org; Sun, 27 Aug 2023 09:35:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaFut-0000Qr-QJ for 65455@debbugs.gnu.org; Sun, 27 Aug 2023 09:35:03 -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 1qaFui-0004U8-Jj; Sun, 27 Aug 2023 09:34:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=VTcoIg+3vUuApskHg/mcWlEVlm5HOCh3557VoV+NG3o=; b=hij8/vb9sSD85qOGkGXd VrNDU4OUT4VN62b7+ENcFq17oMw4BNSGeJM1iTszBugecxv/T+LC3rE82krbKFHhz/9WqFV2Cn7YT RBEZ9sDJcCDV7BOArMU7cjCPZT5pd0j2Uytw03Ke4uuADGRgbmsWuR1m2z0rnRrkEJt8HbtKUfvR+ mp7VEIKOuQHfNUBm31ib3mCsLJrQhIu78sLRK1iHQ/WmaeVkuLYcf4PIE9X6L3bOWUF1iunxqp12h LOPWHBrrMTRQh1JWaRdFkBmR9AcykazPS/B1GqYCBjRc9t4PDtHRS1iw4tgMufJHtvn6on3+uphUw w42DLjEIyXN4SQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qaFuh-0005KS-U6; Sun, 27 Aug 2023 09:34:48 -0400 In-Reply-To: <831qfrnpac.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Aug 2023 17:56:59 +0300") 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:268551 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: gerd.moellmann@gmail.com, 65455@debbugs.gnu.org >> Date: Fri, 25 Aug 2023 10:11:58 -0400 >> >> Eli Zaretskii writes: >> >> > I think we are mis-communicating. What I meant is something like this: >> > >> > . add a new optional argument to native-compile that would prevent >> > it from deleting the .eln file >> > . add a new function disassemble-native, which will call >> > native-compile with this new argument, perform disassembly, and >> > then delete the file >> >> I see thanks for clarifying. >> >> I'm not sure I like this option, reason is that I typically want to see >> the disassembly of the already installed function rather than triggering >> a new compilation. Any change in the environment can lead to a >> different output so I think is important to inspect what was produced >> when it was commanded, no? > > If we want to support changes in the environment, I think it would be > an impossibly high bar for such a minor feature. > > So perhaps the following would be enough: > > . find the source .el file of the compiled function That's the tricky part, this bug report is about compiling and disassembling a function with no source file: (defun foo (a b) (list a b)) (native-compile 'foo) (disassemble 'foo) In the moment we compile foo we loose it's original definition and we can compile it twice :/ Thanks Andrea