Debug info on macOS

2024-05-10 Thread Gerd Möllmann
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-w

Re: Debug info on macOS

2024-05-10 Thread Gerd Möllmann
David Malcolm writes: > As I understand it, Emacs is using libgccjit to do ahead-of-time > compilation, presumably compiling the optimized ELisp code to machine > code as a shared library. Correct. > Is Emacs using gcc_jit_context_compile_to_file with > GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY, or i

Re: Debug info on macOS

2024-05-30 Thread Gerd Möllmann
On 2024-05-11 05:39, Gerd Möllmann wrote: David Malcolm writes: As I understand it, Emacs is using libgccjit to do ahead-of-time compilation, presumably compiling the optimized ELisp code to machine code as a shared library. Correct. Is Emacs using gcc_jit_context_compile_to_file with