From: Eli Zaretskii <eliz@gnu.org>
To: Andrea Corallo <acorallo@gnu.org>
Cc: gerd.moellmann@gmail.com, 65455@debbugs.gnu.org
Subject: bug#65455: 30.0.50; Disassemble: error with "free-standing" native compiled function
Date: Sun, 27 Aug 2023 19:21:01 +0300 [thread overview]
Message-ID: <83a5ucjw2a.fsf@gnu.org> (raw)
In-Reply-To: <yp14jkk5ywd.fsf@fencepost.gnu.org> (message from Andrea Corallo on Sun, 27 Aug 2023 10:43:30 -0400)
> From: Andrea Corallo <acorallo@gnu.org>
> Cc: gerd.moellmann@gmail.com, 65455@debbugs.gnu.org
> Date: Sun, 27 Aug 2023 10:43:30 -0400
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> [...]
>
> >> > Also, Andrea, why does
> >> >
> >> > (native-compile 'foo SOME-FILE)
> >> >
> >> > signals an error? I thought it should write the results of
> >> > native-compilation to SOME-FILE, no?
> >>
> >> Loos like a bug, if SOME-FILE is absolute it just works. The fix look
> >> trivial, I'll just test it a bit before pushing it.
> >
> > Thanks.
>
> Fix pushed into 29 as e7ac50a1539.
Thanks, now '(native-compile 'foo SOME-FILE)' succeeds, but
disassemble signals an error:
(defun foo (a b)
(list a b))
(native-compile 'foo "foo.eln")
(disassemble 'foo)
Debugger entered--Lisp error: (search-failed "^.*<F666f6f_foo_0>:")
re-search-forward("^.*<F666f6f_foo_0>:")
disassemble-internal(foo 0 t)
disassemble(foo)
(progn (disassemble 'foo))
elisp--eval-last-sexp(t)
eval-last-sexp(t)
eval-print-last-sexp(nil)
funcall-interactively(eval-print-last-sexp nil)
command-execute(eval-print-last-sexp)
I get a similar error even if I disassemble a function from a
preloaded Lisp package, for example file-relative-name.
It looks like a Windows-specific issue: the symbols produced by
objdump here have a leading underscore:
6b341400 <_F666f6f_foo_0>:
6b341400: 57 push %edi
6b341401: 56 push %esi
6b341402: 53 push %ebx
So I think the regexp should be "^.*<_?F666f6f_foo_0>:" instead.
next prev parent reply other threads:[~2023-08-27 16:21 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 13:17 bug#65455: 30.0.50; Disassemble: error with "free-standing" native compiled function Gerd Möllmann
2023-08-22 13:29 ` Eli Zaretskii
2023-08-22 13:41 ` Gerd Möllmann
2023-08-22 15:39 ` Eli Zaretskii
2023-08-25 8:11 ` Andrea Corallo
2023-08-25 10:30 ` Eli Zaretskii
2023-08-25 11:43 ` Andrea Corallo
2023-08-25 11:47 ` Eli Zaretskii
2023-08-25 11:52 ` Andrea Corallo
2023-08-25 13:01 ` Eli Zaretskii
2023-08-25 14:11 ` Andrea Corallo
2023-08-25 14:56 ` Eli Zaretskii
2023-08-27 13:34 ` Andrea Corallo
2023-08-27 13:40 ` Eli Zaretskii
2023-08-27 15:41 ` Andrea Corallo
2023-08-27 14:43 ` Andrea Corallo
2023-08-27 16:21 ` Eli Zaretskii [this message]
2023-08-27 18:04 ` Andrea Corallo
2023-08-27 18:22 ` Eli Zaretskii
2023-10-26 6:53 ` Gerd Möllmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83a5ucjw2a.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=65455@debbugs.gnu.org \
--cc=acorallo@gnu.org \
--cc=gerd.moellmann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.