public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: jit@gcc.gnu.org
Subject: Debug info on macOS
Date: Fri, 10 May 2024 15:46:53 +0200	[thread overview]
Message-ID: <m2wmo1lqya.fsf@pro2.fritz.box> (raw)

Hi,

I'm developing Emacs using its native compilation on macOS, which is
based on libgccjit.

In this context, I'm currently failing to get .eln files (= .so, .dylib,
.dll depending on the platform) with debug info. This has probably its
roots in the special handling of DWARF under macOS, a long-winded story
leading to dSYM bundles...

My question is: can I somehow configure libgccjit in a way that keeps
the .o file that was used to produce the resulting .dylib, like it
keeps/writes the various intermediate files that one can get?

If that's possible, my hope would be to extract the debug info from the
.o using dsymutil and use that with the .dylib.

TIA!


             reply	other threads:[~2024-05-10 13:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10 13:46 Gerd Möllmann [this message]
2024-05-10 20:17 ` David Malcolm
2024-05-10 22:11   ` Andrea Corallo
2024-05-11  3:39   ` Gerd Möllmann
2024-05-31  4:09     ` 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=m2wmo1lqya.fsf@pro2.fritz.box \
    --to=gerd.moellmann@gmail.com \
    --cc=jit@gcc.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).