all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 71292@debbugs.gnu.org
Subject: bug#71292: 30.0.50; macOS: .elns have no debug info
Date: Fri, 31 May 2024 21:22:21 +0200	[thread overview]
Message-ID: <m234pxn5w2.fsf@pro2.fritz.box> (raw)
In-Reply-To: <868qzppzt6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 31 May 2024 22:05:25 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Gerd Möllmann <gerd.moellmann@gmail.com>
>> Cc: 71292@debbugs.gnu.org
>> Date: Fri, 31 May 2024 20:52:16 +0200
>> 
>> > Doesn't macOS support separate debug info, which can be created with
>> > objcopy?  If it does, you could copy the debug info from the *.o
>> > files, and then deleting them would not hamper debugging.
>> 
>> MacOS has .dSYM bundles, but how would you convince libgccjit/gcc to
>> invoke dsymutil to produce them before it deletes the .o files? I don't
>> see how that can be done.
>
> So let me be sure I understand: there's no was on macOS to produce a
> shared library with debug info, except by keeping the *.o files
> around?  IOW, when the linker produces a shared library, it doesn't
> copy the debug info from the *.o files to the shared library, not even
> given some optional command-line switch?

That's correct.

An executables on macOS cannot contain debug info as part of its own
file. It contains only a "debug map" referencing the .o files from which
it was built, and these contain the debug info.

Alternatively, if the .o files are not present, or have changed, tools
like debuggers can use .dSYM bundles which are produced by dsymutil from
the .o files in an executable's debug map when it was built. It's acting
like a sort of debug info linker in that case.





  reply	other threads:[~2024-05-31 19:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31 13:55 bug#71292: 30.0.50; macOS: .elns have no debug info Gerd Möllmann
2024-05-31 15:39 ` Eli Zaretskii
2024-05-31 16:31   ` Gerd Möllmann
2024-05-31 18:07     ` Eli Zaretskii
2024-05-31 18:12       ` Gerd Möllmann
2024-05-31 18:32         ` Eli Zaretskii
2024-05-31 18:52           ` Gerd Möllmann
2024-05-31 19:05             ` Eli Zaretskii
2024-05-31 19:22               ` Gerd Möllmann [this message]
2024-06-01  6:15                 ` Gerd Möllmann
2024-06-01  6:24                   ` Gerd Möllmann
2024-06-01  6:36                   ` Eli Zaretskii
2024-06-02  5:41                     ` Gerd Möllmann
2024-06-02  6:40                       ` Eli Zaretskii
2024-06-03 15:30                         ` Andrea Corallo

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=m234pxn5w2.fsf@pro2.fritz.box \
    --to=gerd.moellmann@gmail.com \
    --cc=71292@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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.